private void userToolStripMenuItem_Click(object sender, EventArgs e) { frmUser us = new frmUser(); us.MdiParent = this; us.Visible = true; }
private void userToolStripMenuItem_Click(object sender, EventArgs e) { if (Sessions.prev == "Admin") { frmUser us = new frmUser(); us.MdiParent = this; us.Visible = true; } else { MessageBox.Show("You dont have priviledge to access this service", "KUNIS Messaging System", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }