示例#1
0
        protected override void btnNuevo_Click(object sender, EventArgs e)
        {
            PlanAgregar frmPlaAgr = new PlanAgregar();

            frmPlaAgr.ShowDialog();
            this.Listar();
        }
示例#2
0
 protected override void btnEditar_Click(object sender, EventArgs e)
 {
     if (this.dgvBase.SelectedRows.Count > 0)
     {
         PlanAgregar frmPlaAgr = new PlanAgregar();
         frmPlaAgr.Editar((Plan)dgvBase.SelectedRows[0].DataBoundItem);
         frmPlaAgr.ShowDialog();
         this.Listar();
     }
 }