示例#1
0
        private void pictureBox4_Click(object sender, EventArgs e)
        {
            AdminPanel ap = new AdminPanel(userId);

            ap.Show();
            this.Hide();
        }
示例#2
0
        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();
            }
        }