Exemplo n.º 1
0
 private bool ScheduleInEvening(Talk talk, Day day)
 {
     foreach (var track in day.Tracks)
     {
         var duration = talk.Duration.Value * (int)(talk.Duration.Unit);
         if (TalkCanBeScheduledInEvening(duration, track))
         {
             track.EveningSession.Talks.Add(talk);
             track.EveningSession.TimeRemaining = track.EveningSession
                                                       .TimeRemaining.Subtract(new TimeSpan(0, duration, 0));
             return true;
         }
     }
     return false;
 }
Exemplo n.º 2
0
 private void ScheduleNetworkingEvent(Day day)
 {
     foreach (var track in day.Tracks)
         track.Networking.StartTime = track.EveningSession.EndTime.Subtract(track.EveningSession.TimeRemaining);
 }