private void settingToolStripMenuItem_Click(object sender, EventArgs e) { AdminPanal panal = new AdminPanal(); this.Hide(); panal.Show(); }
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); } }