Beispiel #1
0
 private void ShowUnlock()
 {
     var cp = new CheckPassword();
     cp.ShowDialog(this);
     if (cp.DialogResult == DialogResult.OK)
     {
         Activate();
         Visible = true;
         if (WindowState == FormWindowState.Minimized)
         {
             Show();
             WindowState = FormWindowState.Normal;
         }
         Focus();
     }
     cp.Dispose();
 }
Beispiel #2
0
 private void NotifyIcon1DoubleClick(object sender, EventArgs e)
 {
     if (Visible == false || WindowState == FormWindowState.Minimized)
     {
         if (iSpyServer.Default.Enable_Password_Protect)
         {
             var cp = new CheckPassword();
             cp.ShowDialog(this);
             if (cp.DialogResult == DialogResult.OK)
             {
                 ShowForm(-1);
             }
             cp.Dispose();
         }
         else
         {
             ShowForm(-1);
         }
     }
     else
     {
         ShowForm(-1);
     }
 }