Ejemplo n.º 1
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>();
        }
Ejemplo n.º 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>();
        }