protected virtual void RaiseTimeoutEvent(StateObject state) { //Logger.Debug("OnTimeoutEvent"); //Logger.Trace(state); OnTimeoutEventHandler handler = TimeoutEvent; handler?.Invoke(state); }
private void tickCountdown() { if (currentSec == 0) { timer.Dispose(); this.Close(); OnTimeout?.Invoke(); } else { txtCountdown.Text = currentSec.ToString(); currentSec -= 1; } }