protected virtual void OnFinishing(CancellableEventArgs args) { var handler = this.Finishing; if (handler != null) { handler(this, args); } }
protected virtual void OnReseting(CancellableEventArgs args) { if (!this.IsSilent) { var handler = this.Reseting; if (handler != null) { handler(this, args); } } }
public void InitiateFinishing(Boolean cancellable) { var args = new CancellableEventArgs(false); this.OnFinishing(args); this.finalCountdown.Start(); if (cancellable && args.IsCancelled) { this.CancelFinishing(); } }