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); } } }
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); }