コード例 #1
0
ファイル: frmEmployeeList.cs プロジェクト: nivzxc/HRMS
        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();
     }
 }