Пример #1
0
 public static void ShowSingleWindow()
 {
     if (_window == null)
     {
         _window       = new NewInvoiceWindow();
         _window.Owner = App.Current.MainWindow;
         _window.Show();
     }
     else
     {
         _window.Activate();
     }
 }
Пример #2
0
 public static void ShowSingleWindow()
 {
     if (Window == null)
     {
         Window = new NewInvoiceWindow {
             Owner = Application.Current.MainWindow
         };
         Window.Show();
     }
     else
     {
         Window.Activate();
     }
 }
Пример #3
0
 private static void NewInvoiceWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     Window = null;
 }
Пример #4
0
 private void NewInvoice()
 {
     NewInvoiceWindow.ShowSingleWindow();
 }