Exemplo n.º 1
0
 protected void Dispose(bool disposing)
 {
     if (!this.IsDisposed)
     {
         ExtensionMethods.RaiseEvent(this._disposing, (object)this);
         this._disposing = (EventHandler)null;
         if (disposing)
         {
             this.DisposeManagedResources();
         }
         this.DisposeNativeResources();
     }
     this.IsDisposed = true;
 }
Exemplo n.º 2
0
 public static void RaiseEvent(this EventHandler eventHandler, object source)
 {
     ExtensionMethods.RaiseEvent(eventHandler, source, EventArgs.Empty);
 }