private void label2_Click(object sender, EventArgs e) { if (str != "ADMIN") MessageBox.Show("Access Denied" + str); else { frmTransaction f = new frmTransaction(); f.ShowDialog(); } }
private void tbNewTrans_Click(object sender, EventArgs e) { if (statUser.Text != "ADMIN") MessageBox.Show("Access Denied"); else { frmTransaction f = new frmTransaction(); f.ShowDialog(); } }
private void mnuNewTrans_Click(object sender, EventArgs e) { frmTransaction f = new frmTransaction(); f.ShowDialog(); }