예제 #1
0
 /// <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);
 }
예제 #2
0
        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;
        }
예제 #3
0
 protected virtual void OnSearch(SearchArgs e)
 {
     if (ClickSearch != null)
         ClickSearch(this, e);
 }