Пример #1
0
 private void hotKey1_HotKeyPressed(object sender, HotKeyEventArgs e)
 {
     if (notifyIcon1.Visible == false)
     {
         notifyIcon1.Visible = true;
         if (DoAn_QLCC.Properties.Settings.Default.CheckShowMessage_Again == true)
         {
             HiddenMode_Form frm = new HiddenMode_Form(false);
             frm.Show();
             timer_Check_Cancle.Start();
             timer_Check_Cancle.Enabled = true;
         }
     }
     else
     {
         notifyIcon1.Visible = false;
     }
 }
Пример #2
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "")
     {
         MessageBox.Show("Please enter login information", "Message");
     }
     else
     {
         if (textBox1.Text == DoAn_QLCC.Properties.Settings.Default.Security_pass)
         {
             if (_message == "logview")
             {
                 Log_View frm = new Log_View();
                 frm.Show();
             }
             if (_message == "hiddenmode")
             {
                 HiddenMode_Form frm = new HiddenMode_Form();
                 frm.Show();
             }
             if (_message == "optionview")
             {
                 Options_view frm = new Options_view();
                 frm.Show();
             }
             if (_message == "exit")
             {
                 try
                 {
                     Environment.Exit(1);
                 }
                 catch { Application.Exit(); }
             }
             this.Close();
         }
         else
         {
             MessageBox.Show("Incorrect password", "Message");
         }
     }
 }
Пример #3
0
        private void hiddenModeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (DoAn_QLCC.Properties.Settings.Default.Enable_security == true && DoAn_QLCC.Properties.Settings.Default.Protect_hidden_mode == true)
            {
                Password_checker frm = new Password_checker("hiddenmode");
                frm.Show();
            }
            else
            {
                if (DoAn_QLCC.Properties.Settings.Default.CheckShowMessage_Again == true)
                {
                    HiddenMode_Form frm = new HiddenMode_Form();

                    frm.Show();
                    timer_Check_Cancle.Start();
                    timer_Check_Cancle.Enabled = true;
                }
                else
                {
                    notifyIcon1.Visible = false;
                }
            }
        }