// <----------------//////////////////////////////////// // //Teste preencher combobox Modelo<<<<<<<<<<<<-------------------- private void PreencherComboModelo() { Automovel d = new Automovel(); d.PreencherComboModelo(cmbModelo); }
//<<<<<<<<<<<<<<<---------------------------- //Teste preencher combobox Marca<<<<<<<<<<<<-------------------- private void MontarComboAutomovel() { Automovel b = new Automovel(); b.PreencherCombo(cmbMarca); }
// <---------------- Preenche o combo do cliente com as informações da tabela de clientes private void MontarComboCliente() { Automovel c = new Automovel(); c.PreencherComboCliente(cmbCliente); }
// private void CadastrarAutomovel() { Automovel a = new Automovel(Cliente.RetornarIdPeloNome(cmbCliente.Text), cmbMarca.Text, cmbModelo.Text, txtPlaca.Text, txtCombustivel.Text, cmbAno.Text, txtCor.Text, txtRenavam.Text); a.Inserir(); }
private void MontarTabelaAutomovel() { Automovel a = new Automovel(); a.PreencherTabela(dataTable); }
//------------------------------------------------- private void AlterarAutomovel() { Automovel a = new Automovel(); a.Atualizar(Int32.Parse(txtcodAutomovel.Text), Cliente.RetornarIdPeloNome(cmbCliente.Text), cmbMarca.Text, cmbModelo.Text, txtPlaca.Text, txtCombustivel.Text, cmbAno.Text, txtCor.Text, txtRenavam.Text); }
//-------------------------------- private void ExcluirAutomovel() { Automovel a = new Automovel(); a.Excluir(Convert.ToInt32(grdAutomovel.CurrentRow.Cells[0].Value)); }