Пример #1
0
        public AlumnoDesktop(ModoForm modo)
            : this()
        {
            this.Modo = modo;

            if (this.Modo == ModoForm.Alta)
            {
                try
                {
                    txtLegajo.Text = alumnoLogic.obtenerProximoLegajo().ToString();
                    this.loadEspecialidades();
                }
                catch (NotFoundException ex)
                {
                    Notificar(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
                catch (CustomException ex)
                {
                    Notificar(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
                catch (Exception ex)
                {
                    Notificar(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }
Пример #2
0
 protected void nuevoLinkButton_Click(object sender, EventArgs e)
 {
     this.ABMPanel.Visible         = true;
     this.gridActionsPanel.Visible = false;
     this.formActionsPanel.Visible = true;
     this.ClearForm();
     txtLegajo.Text = alumnoLogic.obtenerProximoLegajo().ToString();
     this.FormMode  = TiposDatos.FormModes.Alta;
     this.EnableForm(true);
 }