protected override void Dispose(bool disposing) { if (disposing) { _tooltipService.Dispose(); _notificationService.Dispose(); } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { OnClosing(); if (_notificationService != null) { _notificationService.Dispose(); _notificationService = null; } if (_toolTipService != null) { _toolTipService.Dispose(); _toolTipService = null; } _viewModel = null; } base.Dispose(disposing); }