private void btnMasuk_Click(object sender, EventArgs e) { if (txtUsr.Text == "" || txtPswd.Text == "") { MessageBox.Show("Kode dan Password harus diisi !"); } else { login.setKode(txtUsr.Text); login.setPassword(txtPswd.Text); status = LoginDao.Login(login); if (status == false) { MessageBox.Show("Maaf login gagal"); txtUsr.Text = ""; txtPswd.Text = ""; txtUsr.Focus(); } else { View.FrmDashboard f4 = new View.FrmDashboard(); f4.Show(); this.Hide(); } } }
private void btnClose_Click(object sender, EventArgs e) { View.FrmDashboard f4 = new View.FrmDashboard(); f4.Show(); this.Dispose(); }