Exemplo n.º 1
0
        private void button6_Click(object sender, EventArgs e)
        {
            DriverHome home = new DriverHome();

            this.Hide();
            home.Show();
        }
Exemplo n.º 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();
            }
        }