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; }
private void ScheduleNetworkingEvent(Day day) { foreach (var track in day.Tracks) track.Networking.StartTime = track.EveningSession.EndTime.Subtract(track.EveningSession.TimeRemaining); }