private void pictureBox4_Click(object sender, EventArgs e) { AdminPanel ap = new AdminPanel(userId); ap.Show(); this.Hide(); }
private void pictureBox4_Click(object sender, EventArgs e) { int status = lp.GetIdStatus(userId); if (status == 1) { AdminPanel ap = new AdminPanel(userId); ap.Show(); this.Hide(); } else if (status == 2) { SalesPanel sp = new SalesPanel(userId); sp.Show(); this.Hide(); } }