Exemplo n.º 1
0
        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)));
            }
        }
Exemplo n.º 2
0
        private bool Search()
        {
            if (LaboratoriosBLL.Buscar(Utilidades.StringToInt(laboratorioIdTextBox.Text)) == null)
            {
                MessageBox.Show("El id no existe");
                return(false);
            }

            return(true);
        }