private void StartNewDuty() { _Provider.StartNewDuty(); NotifyPropertyChanged(() => this.CurrentDuty); SetCurrentDutyGroup(new DutyGroup() { Name = "Add current group..." }); NotifyPropertyChanged(() => CurrentDutyGroup); SetAndStartTimer(); }
static void Main(string[] args) { DutyProvider provider = new DutyProvider(); provider.StartNewDuty(); provider.StartNewDuty(); provider.FinishDutyAndUnpausePrevious(); provider.StartNewDuty(); provider.FinishDutyAndStartNew(); provider.FinishDutyAndStartNew(); var duty1 = provider.Iteration.Duties[0]; provider.UnpauseDuty(duty1); }