public static void ShowOrFocus() { if (Instance.WindowState == FormWindowState.Minimized) { PInvokeUtils.RestoreForm(Instance); } else if (Instance.Visible) { Instance.Activate(); } else { Instance.Show(); } }