Beispiel #1
0
 protected override bool ProcessCmdKey(ref Message msg, Keys keyData) // shortcut 4 button
 {
     if (keyData == (System.Windows.Forms.Keys.Escape))
     {
         //  Application.Exit();
     }
     if (keyData == (System.Windows.Forms.Keys.F10))
     {
         Frm_Config frm = new Frm_Config();
         frm.ShowDialog();
     }
     return(base.ProcessCmdKey(ref msg, keyData));
 }
Beispiel #2
0
 private void frm_login_Load(object sender, EventArgs e)
 {
     logger.Info(User_Login.Name + "Run Login");
     txt_user.Focus();
     try
     {
         ConnectDb       Connect = new ConnectDb();
         MySqlConnection con     = Connect.GetCon();
         con.Open();
         con.Close();
         logger.Info("Db correct");
     }
     catch (Exception ex)
     {
         Frm_Config frm = new Frm_Config();
         frm.ShowDialog();
         logger.Error("Error Db incorrect: " + ex);
     }
 }
Beispiel #3
0
        private void lb_ReConfig_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Frm_Config frm = new Frm_Config();

            frm.ShowDialog();
        }