Exemplo n.º 1
0
        private void OnElapsed(object sender, ElapsedEventArgs e)
        {
            if (!_started || _disposed)
            {
                return;
            }

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

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