private void btnOkay_Click(object sender, EventArgs e) { this.Dispose(); FrmAdminMenu frmMenu = new FrmAdminMenu(); frmMenu.Show(); }
private void button3_Click(object sender, EventArgs e) { this.Dispose(); FrmAdminMenu frmAM = new FrmAdminMenu(); frmAM.Show(); }
private void button2_Click(object sender, EventArgs e) { this.Hide(); FrmAdminMenu frm7 = new FrmAdminMenu(); frm7.Show(); }
private void button1_Click(object sender, EventArgs e) { this.Dispose(); FrmAdminMenu Am = new FrmAdminMenu(); Am.Show(); }
private void btnOkay_Click(object sender, EventArgs e) { this.Hide(); FrmAdminMenu AdminMenu = new FrmAdminMenu(); AdminMenu.Show(); }
private void btnLogin_Click(object sender, EventArgs e) { string sql = @"Select * from tblAdmin where Username like '" + txtUsername.Text + "' and Password like '" + txtPassword.Text + "'"; cm = new SqlCommand(sql, cn); dr = cm.ExecuteReader(); dr.Read(); if (dr.HasRows) { FrmAdminMenu frm7 = new FrmAdminMenu(); frm7.pass(txtUsername.Text); frm7.Show(); this.Hide(); dr.Close(); InsertTrail(); dr.Close(); MessageBox.Show("Welcome Admin :)"); } else { MessageBox.Show("Access Denied! ", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Stop); } }
private void btnCancel_Click(object sender, EventArgs e) { this.Dispose(); FrmAdminMenu frmAD = new FrmAdminMenu(); frmAD.Show(); }