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