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

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