private void optionsToolStripMenuItem_Click(object sender, EventArgs e) { if (DoAn_QLCC.Properties.Settings.Default.Protect_Option_viewer == true && DoAn_QLCC.Properties.Settings.Default.Enable_security == true) { Password_checker frm = new Password_checker("optionview"); frm.Show(); } else { Options_view frm = new Options_view(); frm.Show(); } }
private void exitToolStripMenuItem_Click(object sender, EventArgs e) { if (DoAn_QLCC.Properties.Settings.Default.Enable_security != true && DoAn_QLCC.Properties.Settings.Default.Protect_exit == false) { try { // Application.Exit(); Environment.Exit(1); } catch { Application.Exit(); } } else { Password_checker frm = new Password_checker("exit"); frm.Show(); } }
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; } } }