private bool ValidarPesquisa() { bool ret = true; if (cmbStiPesquisa.SelectedIndex == -1) { Util.ExibircamposObrig("Situação do Veículo"); ret = false; } return(ret); }
private bool ValidarCampos() { bool ret = true; String campos = ""; if (txtNome.Text.Trim() == "") { ret = false; campos += "- Nome"; } if (!ret) { Util.ExibircamposObrig(campos); } return(ret); }
private bool ValidarCampos() { bool ret = true; string campos = ""; if (cmbMarca.SelectedIndex == -1) { ret = false; campos += "- Marca\n"; } if (txtNome.Text.Trim() == "") { ret = false; campos += "- Modelo\n"; } if (!ret) { Util.ExibircamposObrig(campos); } return(ret); }
private bool ValidarCampos() { bool ret = true; String Campos = ""; if (txtCnpj.Text.Trim() == "") { ret = false; Campos += "- CNPJ\n"; } if (txtSenha.Text.Trim() == "") { ret = false; Campos += "- Senha\n"; } if (!ret) { Util.ExibircamposObrig(Campos); } return(ret); }
private bool ValidarCampos() { bool ret = true; String campos = ""; if (txtNome.Text.Trim() == "") { ret = false; campos += "- Nome"; } if (txtEndereco.Text.Trim() == "") { ret = false; campos += "- Endereço\n"; } if (txtCelular.Text.Trim() == "") { ret = false; campos += "- Celular\n"; } if (txtEmail.Text.Trim() == "") { ret = false; campos = "- E-mail\n"; } if (txtSenha.Text.Trim() == "") { ret = false; campos += "- Senha\n"; } if (!ret) { Util.ExibircamposObrig(campos); } return(ret); }
private bool ValidarCampos() { bool ret = true; String Campos = ""; if (txtAnoCarro.Text.Trim() == "") { ret = false; Campos += "- Ano do Carro\n"; } if (txtAnoFab.Text.Trim() == "") { ret = false; Campos += "- Ano de Fábricação\n"; } if (txtKM.Text.Trim() == "") { ret = false; Campos += "- KM do Veículo\n"; } if (txtPlaca.Text.Trim() == "") { ret = false; Campos += "- Placa do Veículo\n"; } if (txtValorCompra.Text.Trim() == "") { ret = false; Campos += "- Valor de Compra\n"; } if (txtValorVenda.Text.Trim() == "") { ret = false; Campos += "- Valor de Venda\n"; } if (cmbCor.SelectedIndex == -1) { ret = false; Campos += "- Cor do Veículo\n"; } if (cmbDirecao.SelectedIndex == -1) { ret = false; Campos += "- Tipo de Direção do Veículo\n"; } if (cmbMarca.SelectedIndex == -1) { ret = false; Campos += "- Marca do Veículo\n"; } if (cmbModelo.SelectedIndex == -1) { ret = false; Campos += "- Modelo do Veículo\n"; } if (cmbNPorta.SelectedIndex == -1) { ret = false; Campos += "- Número de Portas do Veículo\n"; } if (cmbSituacao.SelectedIndex == -1) { ret = false; Campos += "- Situação do Veículo\n"; } if (cmbAirBag.SelectedIndex == -1) { ret = false; Campos += "- AirBag do Veículo\n"; } if (!ret) { Util.ExibircamposObrig(Campos); } return(ret); }