public void Dispose() { if (_windowLocationChangeHook != null) { _windowLocationChangeHook.Dispose(); _windowLocationChangeHook = null; } }
public void Dispose() { if (_windowStateChangeHook != null) { _windowStateChangeHook.Dispose(); _windowStateChangeHook = null; } }
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"); }
// Must run on the main thread public void Dispose() { Debug.Assert(Thread.CurrentThread.ManagedThreadId == 1); if (_windowStateChangeHook != null) { _windowStateChangeHook.Dispose(); _windowStateChangeHook = null; } }