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