private void MenuOpenMapData(object sender, RoutedEventArgs e) { if (liveMapDataViewer == null) { liveMapDataViewer = new LiveMapDataViewer(); liveMapDataViewer.Closed += LiveMapDataViewer_Closed; liveMapDataViewer.Show(); } else { FocusWindow(liveMapDataViewer); } }
private void LiveMapDataViewer_Closed(object sender, EventArgs e) { liveMapDataViewer = null; }