Example #1
0
 private void deleteUserToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (lbl_getusertype.Text == "Admin")
     {
         DeleteUser DU = new DeleteUser();
         DU.MdiParent = this;
         DU.Show();
     }
     else
     {
         MessageBox.Show("Admin rights required to do this operation");
     }
 }
Example #2
0
        private void delusrbtn_Click(object sender, EventArgs e)
        {
            DeleteUser frm = new DeleteUser();

            frm.Show();
        }