private void CrearCursoButton_Click(object sender, EventArgs e) { string nrc = NRCUser.Text; string nombreCurso = NCursoUser.Text; string nombreProfesor = NProfeUser.Text; string apellidoProfesor = AProfeUser.Text; int creditos = 0; try { creditos = Convert.ToInt32(CreditosUser.Text); } catch { MessageBox.Show("Creditos No Valido!"); return; } if (nrc == "" || nombreCurso == "" || nombreProfesor == "" || apellidoProfesor == "") { MessageBox.Show("Casillas Sin Rellenar"); return; } Especialidad especialidad = (Especialidad)EspecialidadCB.SelectedItem; Gestor.CrearCursoCurricular(nrc, nombreCurso.ToUpper(), (apellidoProfesor.ToUpper() + "/" + nombreProfesor.ToUpper()), creditos, especialidad, listaEventos); OnRegresar(this, EventArgs.Empty); this.Hide(); }