Interaction logic for MapView.xaml
상속: GW2PAO.Views.OverlayWindow
예제 #1
0
 /// <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();
     }
 }
예제 #2
0
 /// <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();
     //}
 }