private void BackBtn_Click(object sender, EventArgs e) { this.Close(); IMGreader lc = new IMGreader(); lc.Show(); }
private void addImageToLesson_Click(object sender, EventArgs e) { if (img == null) { img = new IMGreader(); img.MdiParent = this; img.FormClosed += new FormClosedEventHandler(img_FormClosed); img.Show(); img.changeDir(cdir + "\\" + lesson, lesson); } else { img.Activate(); } }
void img_FormClosed(object sender, FormClosedEventArgs e) { img = null; }