Exemplo n.º 1
0
 private void tsbNuevo_Click(object sender, EventArgs e)
 {
     try
     {
         LimpiarCampos();
         Modo = FormMaterias.ModoForm.Alta;
         MateriaLogic materiaLogic = new MateriaLogic();
         txt_IDMateria.Text = (materiaLogic.GetMaxID() + 1).ToString();
         Listar();
     }
     catch (Exception ex)
     {
         this.Notificar("Error en alta", "Error al crear una materia \n\n" + ex
                        , MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }