public Workspace() { Provider = new DutyProvider(); _Timer = new DispatcherTimer(); _Timer.Interval = TimeSpan.FromSeconds(1); _Timer.Tick += TimerTick; _AvailableGroups = new ObservableCollection<DutyGroup>(); _AvailableKeywords = new ObservableCollection<string>(); LoadDutyGroups(); LoadKeywords(); LoadTempIteration(); PropertyChanged += Workspace_PropertyChanged; }
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); }