Esempio n. 1
0
        protected virtual void RaiseTimeoutEvent(StateObject state)
        {
            //Logger.Debug("OnTimeoutEvent");
            //Logger.Trace(state);

            OnTimeoutEventHandler handler = TimeoutEvent;

            handler?.Invoke(state);
        }
Esempio n. 2
0
 private void tickCountdown()
 {
     if (currentSec == 0)
     {
         timer.Dispose();
         this.Close();
         OnTimeout?.Invoke();
     }
     else
     {
         txtCountdown.Text = currentSec.ToString();
         currentSec       -= 1;
     }
 }