Example #1
0
        private void userPermissionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmPermissions frm = new frmPermissions();

            CVariables.frm1 = this;
            frm.MdiParent   = this;
            frm.Top         = 0;
            frm.Left        = 0;
            frm.Show();
        }
Example #2
0
 private void naviBand4_Click(object sender, EventArgs e)
 {
     if (CVariables.IsAdmin == true)
     {
         frmPermissions frm = new frmPermissions();
         CVariables.frm1 = this;
         frm.MdiParent   = this;
         frm.Top         = 0;
         frm.Left        = 0;
         frm.Show();
     }
     else
     {
         MessageBox.Show("You do not have permission to view this form ");
     }
 }