Esempio n. 1
0
 public static void ShowDownloadOutputWindow(Window owner = null)
 {
     if (instance != null)
     {
         if (instance.WindowState == WindowState.Minimized)
         {
             instance.WindowState = WindowState.Normal;
         }
         instance.Activate();
     }
     else
     {
         instance       = new DownloadOutputWindow();
         instance.Owner = owner;
         instance.Show();
     }
 }
Esempio n. 2
0
 private void Window_Closed(object sender, EventArgs e)
 {
     instance = null;
 }