Пример #1
0
 protected virtual void Dispose(bool disposing)
 {
     //Make sure Dispose does not get called more than once,
     //by checking the disposed field
     if (!this.disposed)
     {
         if (disposing)
         {
             //Clean up managed resources
             _watcher.Remove(_handler);
         }
         //Now clean up unmanaged resources
     }
     disposed = true;
 }
 /// <summary>
 /// Removes the dialog handler.
 /// </summary>
 /// <param name="handler">The dialog handler.</param>
 public void RemoveDialogHandler(IDialogHandler handler)
 {
     DialogWatcher.Remove(handler);
 }