Beispiel #1
0
 private void windowClosing(Object sender, CancelEventArgs e)
 {
     if (!closeReally)
     {
         e.Cancel        = true; //don't close as such
         this.Visibility = Visibility.Hidden;
     }
     if (heardWindow != null)
     {
         heardWindow.Close();
         heardWindow = null;
     }
     if (keyWindow != null)
     {
         keyWindow.Close();
         keyWindow = null;
     }
 }
 private void windowClosing(Object sender, CancelEventArgs e)
 {
     if (!closeReally)
     {
         e.Cancel = true;  //don't close as such
         this.Visibility = Visibility.Hidden;
     }
     if (heardWindow != null)
     {
         heardWindow.Close();
         heardWindow = null;
     }
     if (keyWindow != null)
     {
         keyWindow.Close();
         keyWindow = null;
     }
 }
 void reviewPodsHeard(Object obj, RoutedEventArgs e)
 {
     //if(heardWindow == null)
     heardWindow = new Window2(this, playWindow);
     //heardWindow.Show();
     heardWindow.ShowDialog();
     heardWindow.Focus();
 }