private void FormAddSubject_FormClosed(object sender, FormClosedEventArgs e) { _instance = null; if (form != null) { if (form.GetType() == typeof(FormTeacherList)) { FormTeacherList formTeacher = (FormTeacherList)form; formTeacher.LoadSubjectList(); } else if (form.GetType() == typeof(FormAddClassSubject)) { FormAddClassSubject formClassSec = (FormAddClassSubject)form; formClassSec.LoadSubjectList(); } } }
private void FormAddClassSubject_FormClosing(object sender, FormClosingEventArgs e) { _instance = null; }