private void Buscarbutton_Click(object sender, EventArgs e) { Laboratorios lab = new Laboratorios(); if (ValidarId("Ingrese el id de el laboratorio quiere buscar") && Search()) { Fill(LaboratoriosBLL.Buscar(Utilidades.StringToInt(laboratorioIdTextBox.Text))); } }
private bool Search() { if (LaboratoriosBLL.Buscar(Utilidades.StringToInt(laboratorioIdTextBox.Text)) == null) { MessageBox.Show("El id no existe"); return(false); } return(true); }