예제 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            ABMCategoria agregar = new ABMCategoria();

            agregar.ShowDialog();
            btnSearch_Click(sender, e);
        }
예제 #2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (dgvCategorias.CurrentCell != null)
     {
         ABMCategoria frmABM    = new ABMCategoria();
         var          categoria = (Categoria)dgvCategorias.CurrentRow.DataBoundItem;
         frmABM.InicializarForm(ABMCategoria.FormMode.modificar, categoria);
         frmABM.ShowDialog();
         btnSearch_Click(sender, e);
     }
 }