コード例 #1
0
        private void button6_Click(object sender, EventArgs e)
        {
            DriverHome home = new DriverHome();

            this.Hide();
            home.Show();
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (cmbLogin.Text == "Manager")
            {
                ManagerHome page = new ManagerHome();
                this.Hide();
                page.Show();
            }

            else if (cmbLogin.Text == "Driver")
            {
                DriverHome page1 = new DriverHome();
                this.Hide();
                page1.Show();
            }
        }