private void btnInscribirAlumno_Click(object sender, EventArgs e) { frmInscripcion2 Inscripcion = new frmInscripcion2((clsAlumno)usuario); Inscripcion.ShowDialog(); }
private void btnContinuar_Click(object sender, EventArgs e) { try { if (rdAlumnos.Checked) { if (Alumno.Id != -1) { frmInscripcion2 nuevo = new frmInscripcion2(Alumno); this.Visible = false; nuevo.ShowDialog(); btnCancelar.BackColor = Color.Black; btnCancelar.Text = "Cancelar"; this.Visible = true; } else { MessageBox.Show("Debe Seleccionar un Alumno"); } } else { if (Curso.Id != -1) { frmInscripcion2 nuevo = new frmInscripcion2(Curso); this.Visible = false; nuevo.ShowDialog(); btnCancelar.BackColor = Color.Black; btnCancelar.Text = "Cancelar"; this.Visible = true; } else { MessageBox.Show("Debe Seleccionar un Curso"); } } } catch (Exception a) { MessageBox.Show(a.Message); } }