コード例 #1
0
 public void ValueAutomaticSet(Decimal value)
 {
     SetPropertyValue <Decimal>("ValueAutomatic", ref _ValueAutomatic, value);
     if (TopTime != null)
     {
         TopTime.ValueAutomaticUpdate();
     }
 }
コード例 #2
0
        private bool HandleIteration()
        {
            switch (State)
            {
            case ClockState.TopTimerIsOn:
                TopTime = TopTime.Subtract(new TimeSpan(0, 0, 0, 0, 100));
                if (TopTime.TotalMilliseconds == 0)
                {
                    State = ClockState.Finished;
                }
                return(true);

            case ClockState.BotTimerIsOn:
                BotTime = BotTime.Subtract(new TimeSpan(0, 0, 0, 0, 100));
                if (BotTime.TotalMilliseconds == 0)
                {
                    State = ClockState.Finished;
                }
                return(true);

            case ClockState.NotStarted:
                return(true);

            case ClockState.PausedByBot:
                return(true);

            case ClockState.PausedByTop:
                return(true);

            case ClockState.Finished:
                return(false);

            default:
                return(false);
            }
        }