예제 #1
0
        private void tbtnClose_Click(object sender, EventArgs e)
        {
            mdiIpanema objmdi = new mdiIpanema();

            objmdi.DSGZeroEL();
            Close();
        }
예제 #2
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     if (HRMSCore.Login(txtUsername.Text, txtPassword.Text))
     {
         HRMSCore.Username  = txtUsername.Text;
         HRMSCore.LoginDate = DateTime.Now;
         HRMSCore.Password  = txtPassword.Text;
         mdiIpanema pForm = new mdiIpanema();
         pForm.FormLogin = this;
         pForm.Show();
         this.Hide();
         txtPassword.Text = "";
     }
     else
     {
         MessageBox.Show("Invalid username/password", clsMessageBox.MessageBoxText, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         txtUsername.Focus();
     }
 }