private void settingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AdminPanal panal = new AdminPanal();

            this.Hide();
            panal.Show();
        }
Beispiel #2
0
 private void settingToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Session.logedInType.ToString() == "admin")
     {
         AdminPanal admin = new AdminPanal();
         this.Hide();
         admin.Show();
     }
     else
     {
         MessageBox.Show("You do not have permissions", "Invalid Data", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }