private void btnGuardarOtro_Click(object sender, EventArgs e) { int idAplicante; string fechaEvaluacion, horaEvaluacion; fechaEvaluacion = dtpFechaEval.Value.ToShortDateString(); horaEvaluacion = dtpHoraEval.Value.ToShortTimeString(); if (string.IsNullOrEmpty(cmbAplicantes.Text)) { MessageBox.Show("Asegurese de llenar los campos"); } else { idAplicante = int.Parse(cmbAplicantes.SelectedValue.ToString()); if (evaluaciones.validateEvApl(idEval, idAplicante)) { evaluaciones.asignAplEval(idEval, idAplicante, fechaEvaluacion, horaEvaluacion); Control pnlContent = ParentForm.Controls.Find("pnlContent", true)[0]; ControlUtils.abrirFormEnPanel(pnlContent, new AddAsignEvaluacion(idEval)); Close(); } else { MessageBox.Show("Ese aplicante ya se encuentra asignado a esta evaluacion"); } } }