/// <summary> /// Displays a new Map Overlay window /// </summary> public void OpenMap() { if (this.mapView == null || !this.mapView.IsVisible) { this.mapView = new MapView(); this.Container.ComposeParts(this.mapView); this.mapView.Show(); } else { this.mapView.Focus(); } }
/// <summary> /// Displays a new Map Overlay window /// </summary> public void OpenMap() { var mapView = new MapView(); this.Container.ComposeParts(mapView); mapView.Show(); openMapViews.Add(mapView); //mapView.Closed += (o, e) => //{ // if (this.openMapViews.Contains(mapView)) // this.openMapViews.Remove(mapView); //}; //if (this.eventTrackerView == null || !this.eventTrackerView.IsVisible) //{ // this.eventTrackerView = new EventTrackerView(); // this.Container.ComposeParts(this.eventTrackerView); // this.eventTrackerView.Show(); //} //else //{ // this.eventTrackerView.Focus(); //} }