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