protected override void EditExamenAction() { try { Alumno_Examen current = (Alumno_Examen)Examenes_Grid.CurrentRow.DataBoundItem; if (current != null && current.Presentado) { ExamenInfo examen = ExamenInfo.Get(current.OidExamen, false); if (examen != null && !examen.Desarrollo) { Alumno_ExamenEditForm form = new Alumno_ExamenEditForm(); form.SetSourceData(Entity, current); form.ShowDialog(); Datos_Alumno_Examen.ResetBindings(false); } } } catch { } }
private void Respuestas_BT_Click(object sender, EventArgs e) { try { Alumno_Examen current = Entity.Alumnos[_index]; if (current != null) { Alumno alumno = Alumno.Get(current.OidAlumno, false, Entity.SessionCode); Alumno_ExamenEditForm form = new Alumno_ExamenEditForm(); form.SetSourceData(alumno, current); form.ShowDialog(); Nota_TB.Text = current.Calificacion.ToString();; //alumno.CloseSession(); //alumno.Save(); } } catch { } }