private void WaitTimer_Elapsed(object sender, ElapsedEventArgs e) { WaitCount--; if (WaitCount <= 0) { WaitCount = 0; WaitTimer.Stop(); WaitTimerDone?.Invoke(this, new EventArgs()); } WaitTimerUpdate?.Invoke(this, WaitCount); }
private void ScriptFSM_WaitTimerDone(object sender, EventArgs e) { WaitTimerDone?.Invoke(sender, e); }