Beispiel #1
0
        private void CbxCarroModelo_SelectedIndexChanged(object sender, EventArgs e)
        {
            consultaIDCarro = new ConsultaIDCarro();

            try
            {
                ID_Carro = consultaIDCarro.IDCarro(CbxCarroModelo.Text.Trim());
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, Application.ProductName);
            }
        }
Beispiel #2
0
        private void CbxCarro_SelectedIndexChanged(object sender, EventArgs e)
        {
            consultaIDCarro          = new ConsultaIDCarro();
            consultaCadControleCarro = new ConsultaCadControleCarro();

            try
            {
                ID_Carro = consultaIDCarro.IDCarro(CbxCarro.Text.Trim());
                if (RbPorCarro.Checked)
                {
                    PorCarro(ID_Carro);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, Application.ProductName);
            }
        }
Beispiel #3
0
 private void CbxMarcaModeloCarro_SelectedIndexChanged(object sender, EventArgs e)
 {
     consultaIdCarro = new ConsultaIDCarro();
     ID_Carro        = consultaIdCarro.IDCarro(CbxMarcaModeloCarro.Text.Trim());
 }