private void CbxMotorista_SelectedIndexChanged(object sender, EventArgs e) { consultarIDMotorista = new ConsultaIDMotorista(); try { ID_Motorista = consultarIDMotorista.IDMotorista(CbxMotorista.Text.Trim()); } catch (Exception ex) { MessageBox.Show(ex.Message, Application.ProductName); } }
private void CbxMotorista_SelectedIndexChanged(object sender, EventArgs e) { consultaIdMotorista = new ConsultaIDMotorista(); ID_Motorista = consultaIdMotorista.IDMotorista(CbxMotorista.Text.Trim()); }