private void btn_aplicar_filtro_persona_Click(object sender, EventArgs e) { Empleado per = new Empleado(); if (txt_apellido.Text != "") { per.Apellido = txt_apellido.Text; } if (txt_nombre.Text != "") { per.Nombre = txt_nombre.Text; } List <Empleado> empleados = null; try { empleados = EmpleadoDAO.GetByFiltro(per); } catch (ApplicationException ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); } cargarGrillaFiltrada(empleados); }