Example #1
0
 private void OnCurrentChanging(CurrentChangingEventArgs args)
 {
     if (args == null)
     {
         throw new ArgumentNullException("args");
     }
     if (this._currentChangedMonitor.Busy)
     {
         if (args.get_IsCancelable())
         {
             args.set_Cancel(true);
         }
     }
     else if (this.CurrentChanging != null)
     {
         this.CurrentChanging.Invoke(this, args);
     }
 }