c# - How to get values that are not directly in the list? -


I want to get value from a list based on the selected day. I know this is unclear, but continue to read to understand. I have two lists, rooms and fulllists.

Room includes only room numbers / names:

  7-04 7-05 7-06 7-07 (Small conference room) 7-08 Big conference room  

The complete list contains combinations of some strings ('#' is used as a delimiter, this room is also similar to the above list): <+++++ ++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++ + initial date );

A simple input is shown in the full list:

  "# 3 # CISC3345 # 10: 45 # 13: 00 # 0 # Monday: Wednesday # 7-8 # 10/03/2014 " 

What I want is a new list in which for every room I received before the start of the event and after evnetEnd with the time limit received I want to "9:00" and "22:00". Example example:

Example data looks like this (each row has a full list value):

  Event_ID Event EventStart Eventand Repeat Days Repeat Rooms Dastartes 2 CISC 3660 9: 00 12:30:00 Monday 1 07-07 9/19/2014 4 MATH 2501 15:00:00 17:00 Monday Monday: Wednesday 7 7/7/2014 10/13/2014 5 CISC 1110 14: 00:00 16:00:00 Monday 1 07-07 9/19/2014 7 CISC 1340 15:00:00 22:00:00 Monday 1 7- 08 9/19/2014  
< P> I want to receive events that are not between event start and event

The list should be returned for the pre-selected date (9/19/2014):

  Room Freedom Time Fertime 7-07 12:30:00 14:00 : 00 7-07 16:00:00 22:00:00 7-08 9: 00:00 15:00:00  

ex2. Selected Date (10/13/2014):

Room Freedom Time Freedom 7 7 9, 9 00:00 15:00:00 7-04 17:00:00 22:00:00 < / Code>

  public class fullList {public id id {get; Set; } Public string event {get; Set; } Public string text {get; Set; } Public DateTime Event Start {Receive; Set; } Public Date Time Event End {get; Set; } Public string day {get; Set; } Repeat public int {get; Set; } {Get;} public string field; Set; } Public DataTime StartDate {Received; Set; } Public override string toring () {return ID + "#" + text + "#" + EventStart + "#" + Eventand + "#" + Repeat + "#" + "#" # "+ Room +" # " + The start date);}} Public Square Foollist Collection: List & lt; fulllists & gt; {Public List & lt; FullList & gt; FindByStartEnd (Date Time Start, Date Timeout) {return.FindAll (x = Gt; x.EventStart> = start & amp; amp; amp; x. Aventand & lt; = end);}} // In the client class, suppose we have a population full of population Connection of my Avirtlist // Our events Fullist Colewukshn Iventsaidetrenj = myEventList.FindByStartEnd (& lt; somestartdate & gt;, & lt; someenddate & gt;);  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -