示例#1
0
        /// <summary>
        /// Raises the <see cref="Idle"/> event.
        /// </summary>
        /// <param name="eventArgs">
        /// The <see cref="GameTimerEventArgs"/> instance containing the event data.
        /// </param>
        protected void OnIdle(GameTimerEventArgs eventArgs)
        {
            var handler = Idle;

            if (handler != null)
            {
                handler(this, eventArgs);
            }
        }
示例#2
0
        /// <summary>
        /// Raises the <see cref="TimeChanged"/> event.
        /// </summary>
        /// <param name="eventArgs">
        /// The <see cref="GameTimerEventArgs"/> instance containing the event data.
        /// </param>
        protected void OnTimeChanged(GameTimerEventArgs eventArgs)
        {
            var handler = TimeChanged;

            if (handler != null)
            {
                handler(this, eventArgs);
            }
        }