コード例 #1
0
ファイル: NoneClock.cs プロジェクト: prezz/Firoz-Chess
        /// <summary>
        /// Initializes a new none clock.
        /// </summary>
        public NoneClock()
        {
            m_whiteTimer = new StopwatchTimer();
              m_blackTimer = new StopwatchTimer();
              m_whiteTimer.TimerNotify += WhiteClockEventHandler;
              m_blackTimer.TimerNotify += BlackClockEventHandler;

              m_currentState = new ClockState(new TimeSpan(), new TimeSpan());

              m_undoHistory = new Stack<ClockState>();
              m_redoHistory = new Stack<ClockState>();
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new none clock.
        /// </summary>
        public NoneClock()
        {
            m_whiteTimer              = new StopwatchTimer();
            m_blackTimer              = new StopwatchTimer();
            m_whiteTimer.TimerNotify += WhiteClockEventHandler;
            m_blackTimer.TimerNotify += BlackClockEventHandler;

            m_currentState = new ClockState(new TimeSpan(), new TimeSpan());

            m_undoHistory = new Stack <ClockState>();
            m_redoHistory = new Stack <ClockState>();
        }