private void closeButton_Click(object sender, EventArgs e) { if (lUserType == "SuperAdmin") { this.Hide(); MainUI frm = new MainUI(); frm.Show(); } if (lUserType == "Admin") { this.Hide(); MainUIForAdmin frm1 = new MainUIForAdmin(); frm1.Show(); } }
private void button1_Click(object sender, EventArgs e) { if (mA1UserType == "SuperAdmin") { this.Hide(); MainUI frm = new MainUI(); frm.Show(); } if (mA1UserType == "Admin") { this.Hide(); MainUIForAdmin frm1 = new MainUIForAdmin(); frm1.Show(); } if (mA1UserType == "User") { this.Hide(); MainUIForUser frm2 = new MainUIForUser(); frm2.Show(); } }