private void tbtnClose_Click(object sender, EventArgs e) { mdiIpanema objmdi = new mdiIpanema(); objmdi.DSGZeroEL(); Close(); }
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(); } }