コード例 #1
0
 private void btnBuscar_Click(object sender, EventArgs e)
 {
     if (this.tbBuscar.Text.IndexOf("'") >= 0)
     {
         MessageBox.Show("El campo no puede contener '");
         return;
     }
     this.Tabla = BDAutor.Buscar(this.tbBuscar.Text);
     this.dgListaAutor.DataSource = this.Tabla;
 }
コード例 #2
0
        private void dgListaAutor_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int id;

            id = (int)this.dgListaAutor.CurrentRow.Cells ["id"].Value;

            Formularios.ABMAutor abm;
            abm = new Formularios.ABMAutor();
            abm.MostrarFormulario(id);

            this.Tabla = BDAutor.Buscar(this.tbBuscar.Text);
            this.dgListaAutor.DataSource = this.Tabla;
        }