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