private void BuscarButton_Click(object sender, RoutedEventArgs e) { int id; Vehiculos vehiculos = new Vehiculos(); int.TryParse(IDVehiculoTextBox.Text, out id); Limpiar(); vehiculos = VehiculoBll.Buscar(id); if (vehiculos != null) { LlenaCampos(vehiculos); } else { System.Windows.MessageBox.Show("No Encontrada"); } }
private bool ExisteBD() { Vehiculos vehiculos = VehiculoBll.Buscar(Convert.ToInt32(IDVehiculoTextBox.Text)); return(vehiculos != null); }