/// <summary> /// Evento click del boton buscar /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnBuscar_Click(object sender, EventArgs e) { SearchArgs args = new SearchArgs(); args.ItemSeleccionado = this.ItemSelecionado; OnSearch(args); }
private void searchControl1_ClickSearch(object sender, SearchArgs e) { //MessageBox.Show("Hola!!!"); //Para probar Filtro -- HACER BIEN!!! _pacienteDTOList = _pacienteAssembler.CreateDTOArrayList(_pacienteService.FiltrarPorApellido(e.ItemSeleccionado.Valor)); this.MainTable = BindingHelper.GetDataTable(_pacienteDTOList, typeof(PacienteDTO)); this.MainBindingSource.DataSource = this.MainTable; bindingNavigator.BindingSource = this.MainBindingSource; gridMain.DataSource = this.MainBindingSource; }
protected virtual void OnSearch(SearchArgs e) { if (ClickSearch != null) ClickSearch(this, e); }