private static void CreateMonitor() { _ = _app.Dispatcher.BeginInvoke(new Action(() => { _monitor = new MonitorWindow(CURRENT); _monitor.SetVM(_VM); _monitor.Closed += _monitor_Closed; _monitor.Show(); })); }
private static void _monitor_Closed(object sender, EventArgs e) { _monitor = null; }