Esempio n. 1
0
 public ClassSection GetClassAtTime(WeeklyTime wt)
 {
     foreach (ClassSection cs in classes)
     {
         if (cs.DoesOverlap(new TimeFrame(wt, wt)))
         {
             return cs;
         }
     }
     return null;
 }
Esempio n. 2
0
 WeeklyTime EnterWeekyTime(DayOfWeek currentDay)
 {
     WeeklyTime wt = new WeeklyTime();
     wt.Day = currentDay;
     Console.WriteLine("Enter hour(0-24)");
     wt.Hour = Int32.Parse(Console.ReadLine());
     Console.WriteLine("Enter minute(0-60)");
     wt.Minute = Int32.Parse(Console.ReadLine());
     return wt;
 }
Esempio n. 3
0
 WeeklyTime EnterWeekyTime()
 {
     Console.WriteLine("Enter day of week (m/t/w/th/f/sat/sun)");
     WeeklyTime wt = new WeeklyTime();
     wt.Day = GetDOW(Console.ReadLine());
     Console.WriteLine("Enter hour(0-24)");
     wt.Hour = Int32.Parse(Console.ReadLine());
     Console.WriteLine("Enter minute(0-60)");
     wt.Minute = Int32.Parse(Console.ReadLine());
     return wt;
 }
Esempio n. 4
0
 public TimeFrame(WeeklyTime start, WeeklyTime end)
 {
     _startTime = start;
     _endTime = end;
 }
Esempio n. 5
0
 public TimeFrame()
 {
     _startTime = new WeeklyTime();
     _endTime = new WeeklyTime();
 }