Exemple #1
0
        private void OnElapsed(object sender, ElapsedEventArgs e)
        {
            if (!_started || _disposed)
            {
                return;
            }

            TickGenerated?.Invoke(this, EventArgs.Empty);
        }
        private void OnTick(uint uID, uint uMsg, uint dwUser, uint dw1, uint dw2)
        {
            if (_timerId == NoTimerId || _disposed)
            {
                return;
            }

            TickGenerated?.Invoke(this, EventArgs.Empty);
        }
Exemple #3
0
 /// <summary>
 /// Generates a tick firing the <see cref="TickGenerated"/> event.
 /// </summary>
 protected void GenerateTick()
 {
     TickGenerated?.Invoke(this, EventArgs.Empty);
 }