private void editClassTSMI_Click(object sender, EventArgs e) { lm = new LessonMaker(); lm.changedir(cdir + "\\" + className + "\\Curriculum"); lm.Text = "Class: " + className + " | Total Lessons: "; lm.className = this.className; lm.Show(); lm.FormClosed += new FormClosedEventHandler(lm_FormClosed); this.Hide(); }
private void lm_FormClosed(object sender, FormClosedEventArgs e) { lm = null; this.Show(); }