Beispiel #1
0
 public static void ShowSingleWindow()
 {
     if (_window == null)
     {
         _window       = new NewInvoiceWindow();
         _window.Owner = App.Current.MainWindow;
         _window.Show();
     }
     else
     {
         _window.Activate();
     }
 }
Beispiel #2
0
 public static void ShowSingleWindow()
 {
     if (Window == null)
     {
         Window = new NewInvoiceWindow {
             Owner = Application.Current.MainWindow
         };
         Window.Show();
     }
     else
     {
         Window.Activate();
     }
 }