Ejemplo n.º 1
0
 private void btnBuscar_Click(object sender, EventArgs e)
 {
     if (this.rbTercero.Checked)
     {
         this.bindingSource1.DataSource          = Comprobante.FindByLikeTipoDocumentoTercero(this.TipoDocumento, "%" + this.txtBusqueda.Text + "%");
         this.dataGridViewComprobante.DataSource = this.bindingSource1;
     }
     if (this.rbTodos.Checked)
     {
         this.bindingSource1.DataSource          = Comprobante.GetAll(this.TipoDocumento);
         this.dataGridViewComprobante.DataSource = this.bindingSource1;
     }
 }
Ejemplo n.º 2
0
 void CargarDocumentos()
 {
     dgvComprobantes.DataSource = Comprobante.GetAll();
 }