Dispose() public method

public Dispose ( ) : void
return void
 public void Dispose()
 {
     if (_windowLocationChangeHook != null)
     {
         _windowLocationChangeHook.Dispose();
         _windowLocationChangeHook = null;
     }
 }
示例#2
0
 public void Dispose()
 {
     if (_windowStateChangeHook != null)
     {
         _windowStateChangeHook.Dispose();
         _windowStateChangeHook = null;
     }
 }
示例#3
0
 public void Dispose()
 {
     Logger.WindowWatcher.Info($"PopupList Dispose Begin");
     _windowWatcher.PopupListWindowChanged -= _windowWatcher_PopupListWindowChanged;
     _windowWatcher = null;
     _selectionChangeHook?.Dispose();
     Logger.WindowWatcher.Info($"PopupList Dispose End");
 }
 public void Dispose()
 {
     Debug.Assert(Thread.CurrentThread.ManagedThreadId == 1);
     Logger.WindowWatcher.Info("PopupList Dispose Begin");
     _windowWatcher.PopupListWindowChanged -= _windowWatcher_PopupListWindowChanged;
     _windowWatcher = null;
     _selectionChangeHook.Dispose();
     Logger.WindowWatcher.Info("PopupList Dispose End");
 }
示例#5
0
 // Must run on the main thread
 public void Dispose()
 {
     Debug.Assert(Thread.CurrentThread.ManagedThreadId == 1);
     if (_windowStateChangeHook != null)
     {
         _windowStateChangeHook.Dispose();
         _windowStateChangeHook = null;
     }
 }