private void testBtn_Click(object sender, EventArgs e) { this.Close(); VIDreader testform = new VIDreader(); testform.Show(); }
private void addVideoToLesson_Click(object sender, EventArgs e) { if (vr == null) { vr = new VIDreader(); vr.MdiParent = this; vr.FormClosed += new FormClosedEventHandler(vr_FormClosed); vr.Show(); vr.changeDir(cdir + "\\" + lesson, lesson); } else { vr.Activate(); } }
void vr_FormClosed(object sender, FormClosedEventArgs e) { vr = null; }