private void MonitorControl_Unloaded(object sender, RoutedEventArgs e) { if (MonitorVM != null) { MonitorVM.Dispose(); } }
protected virtual void DisposeMonitor(MonitorViewModel monitor) => monitor?.Dispose();