Beispiel #1
0
 private void InfoWindow_Closed(object sender, EventArgs e)
 {
     infoWindow.IsVisibleChanged -= InfoWindow_IsVisibleChanged;
     infoWindow.Closed -= InfoWindow_Closed;
     infoWindow = null;
 }
Beispiel #2
0
 private void ShowInfoWindow()
 {
     if (infoWindow == null)
     {
         infoWindowViewModel.UpdateInfo();
         infoWindow = new InfoWindow(infoWindowViewModel);
         infoWindow.IsVisibleChanged += InfoWindow_IsVisibleChanged;
         infoWindow.Closed += InfoWindow_Closed;
         infoWindow.Show();
     }
     else
     {
         infoWindow.WindowActivate();
     }
 }