private void addPDFToLesson_Click(object sender, EventArgs e) { if (pdfv == null) { pdfv = new PDFView(); pdfv.MdiParent = this; pdfv.FormClosed += new FormClosedEventHandler(pdfv_FormClosed); pdfv.Show(); pdfv.changeDir(cdir + "\\" + lesson, lesson); } else { pdfv.Activate(); } }
private void viewPDFBtn_Click(object sender, EventArgs e) { PDFView pdf = new PDFView(); pdf.Show(); }