コード例 #1
0
        private void btnModif_Click(object sender, EventArgs e)                     // Conocemos la "clase" a modificar => sabemos que form (listado) hay que mostrar para seleccionar
        {
            switch (tipo.ToUpper())
            {
            case "CLIENTES":
                FormsAdapter nuevo = new frmListaClientes(this);
                nuevo.formSiguiente = new frmCargaCliente(this);
                nuevo.Show();
                this.Hide();
                break;

            case "CHOFERES":
                nuevo = new frmListaChoferes(this);
                nuevo.formSiguiente = new frmCargaChofer(this);
                nuevo.Show();
                this.Hide();
                break;

            case "AUTOS":
                nuevo = new frmListaAutos(this);
                nuevo.formSiguiente = new frmCargaAuto(this);
                nuevo.Show();
                this.Hide();
                break;

            case "TURNOS":
                nuevo = new frmListaTurnos(this);
                nuevo.formSiguiente = new frmCargaTurno(this);
                nuevo.Show();
                this.Hide();
                break;

            default: throw new Exception("Error en menu modificacion");
            }
        }
コード例 #2
0
        private void selecChofer_Click_1(object sender, EventArgs e)
        {
            frmListaChoferes listaChoferes = new frmListaChoferes(this);

            listaChoferes.formSiguiente   = this;
            listaChoferes.soloHabilitados = false;
            listaChoferes.Show();
            this.Hide();
        }
コード例 #3
0
ファイル: frmRendicion.cs プロジェクト: JARombola/GDD-Uber
        private void btnChofer_Click(object sender, EventArgs e)
        {
            frmListaChoferes listaChoferes = new frmListaChoferes(this);

            listaChoferes.formSiguiente   = this;
            listaChoferes.soloHabilitados = true;
            buscaChofer = true;
            listaChoferes.Show();
            this.Hide();
        }
コード例 #4
0
ファイル: frmCargaViaje.cs プロジェクト: JARombola/GDD-Uber
        //----------------------------------------- BOTONES---------------------------------------------------------------

        private void button1_Click(object sender, EventArgs e)
        {
            frmListaChoferes seleccionChofer = new frmListaChoferes(this);

            seleccionChofer.soloHabilitados = true;
            seleccionChofer.formSiguiente   = this;
            buscaChofer = true;
            seleccionChofer.Show();
            this.Hide();
        }