コード例 #1
0
        protected virtual void OnFinishing(CancellableEventArgs args)
        {
            var handler = this.Finishing;

            if (handler != null)
            {
                handler(this, args);
            }
        }
コード例 #2
0
 protected virtual void OnReseting(CancellableEventArgs args)
 {
     if (!this.IsSilent)
     {
         var handler = this.Reseting;
         if (handler != null)
         {
             handler(this, args);
         }
     }
 }
コード例 #3
0
        public void InitiateFinishing(Boolean cancellable)
        {
            var args = new CancellableEventArgs(false);

            this.OnFinishing(args);

            this.finalCountdown.Start();
            if (cancellable && args.IsCancelled)
            {
                this.CancelFinishing();
            }
        }