Exemple #1
0
        protected override void btnNuevo_Click(object sender, EventArgs e)
        {
            frmMateriaAgregar frmMatAgr = new frmMateriaAgregar();

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