protected override void SetInstructorEfectivo() { InstructorSelectForm form = new InstructorSelectForm(this); if (form.ShowDialog() == DialogResult.OK) { InstructorInfo instructor = form.Selected as InstructorInfo; _entity.OidInstructorEfectivo = instructor.Oid; ProfesorEfectivo_TB.Text = instructor.Nombre; } RefreshSources(); }
private void Instructor_BT_Click(object sender, EventArgs e) { InstructorList instructores = InstructorList.GetList(false); InstructorSelectForm form = new InstructorSelectForm(this, instructores); if (form.ShowDialog(this) == DialogResult.OK) { InstructorInfo instructor = form.Selected as InstructorInfo; _entity.OidProfesor = instructor.Oid; _entity.Instructor = instructor.Alias; Instructor_TB.Text = instructor.Alias; } }
protected override void ModificarInstructoresAction() { try { InstructorSelectForm form = new InstructorSelectForm(this); form.ShowDialog(); if (form.ActionResult == DialogResult.OK) { InstructorEditForm edit_form = new InstructorEditForm((form.Selected as InstructorInfo).Oid); edit_form.ShowDialog(); if (form.ActionResult == DialogResult.OK) { RefreshHorario(); } } } catch { } }