Esempio n. 1
0
 public static void ShowOrActivate(IWin32Window owner)
 {
     if (instance == null)
         (instance = new GitLogForm()).Show(owner);
     else if (instance.WindowState == FormWindowState.Minimized)
         instance.WindowState = FormWindowState.Normal;
     else
         instance.Activate();
 }
Esempio n. 2
0
 public static void ShowOrActivate(IWin32Window owner)
 {
     if (instance == null)
     {
         (instance = new GitLogForm()).Show(owner);
     }
     else if (instance.WindowState == FormWindowState.Minimized)
     {
         instance.WindowState = FormWindowState.Normal;
     }
     else
     {
         instance.Activate();
     }
 }
Esempio n. 3
0
 private void GitLogForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     UnsubscribeFromEvents();
     instance = null;
 }