示例#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();
 }
示例#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();
     }
 }
示例#3
0
 private void GitLogForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     UnsubscribeFromEvents();
     instance = null;
 }