示例#1
0
        private void UnpauseDuty(object duty)
        {
            Duty dut = duty as Duty;

            if (dut != null && dut != CurrentDuty)
            {
                _Provider.UnpauseDuty(dut);

                NotifyPropertyChanged(() => CurrentDuty);
                NotifyPropertyChanged(() => CurrentDutyGroup);

                SetAndStartTimer();
            }
        }
示例#2
0
        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);
        }