Beispiel #1
0
        protected override void btnNuevo_Click(object sender, EventArgs e)
        {
            ComisionAgregar frmComAgr = new ComisionAgregar();

            frmComAgr.ShowDialog();
            this.Listar();
        }
Beispiel #2
0
 protected override void btnEditar_Click(object sender, EventArgs e)
 {
     if (this.dgvBase.SelectedRows.Count > 0)
     {
         ComisionAgregar frmComAgr = new ComisionAgregar();
         frmComAgr.Editar((Comision)dgvBase.SelectedRows[0].DataBoundItem);
         frmComAgr.ShowDialog();
         this.Listar();
     }
 }