protected override void OnClosing(CancelEventArgs e) { _contextMenuDpiHandler.Dispose(); _dpiChangeSubscription.Dispose(); _scaleHandler.Dispose(); base.OnClosing(e); }
/// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose(bool disposing) { if (disposing) { ClearChangeNotifications(); } ScaleHandler.Dispose(); base.Dispose(disposing); }
/// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose(bool disposing) { ScaleHandler.Dispose(); base.Dispose(disposing); }