private void UnbindScheduleButton_Click(object sender, EventArgs e) { foreach (ReserverView reserver in Reservers) { reserver.Browser.Schedule = null; } DateCheckers.ApplyToDateCheckers(checker => checker.Schedule = null); Log("Schedule detached. Manual control", null); }
private void StartScheduledButton_Click(object sender, EventArgs e) { foreach (ReserverView reserver in Reservers) { reserver.Browser.Schedule = Schedule; reserver.Browser.Paused = false; } DateCheckers.ApplyToDateCheckers(checker => checker.Schedule = Schedule); Log("All browsers started scheduled", null); }
private void UpdateDateCheckersFlowStrategy() { if (NotifyAlwaysStrategyChecker.Checked) { DateCheckers.ApplyToDateCheckers(checker => checker.FlowStrategy = NOTIFY_ALWAYS_DATE_CHECKER_FLOW_STRATEGY); } else if (NotifyIfDatesFoundStrategyChecker.Checked) { DateCheckers.ApplyToDateCheckers(checker => checker.FlowStrategy = NOTIFY_IF_DATES_FOUND_DATE_CHECKER_FLOW_STRATEGY); } else if (NotifyIfDatesAndTimesFoundStrategyChecker.Checked) { DateCheckers.ApplyToDateCheckers(checker => checker.FlowStrategy = NOTIFY_IF_DATES_AND_TIMES_FOUND_DATE_CHECKER_STRATEGY); } }