private void printExam(string exam_id_str) { #region Error Check if (!File.Exists(Application.StartupPath + @"\result.html")) { MessageBox.Show("[Result template file]" + FindingsEditor.Properties.Resources.FileNotExist, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } #endregion ExamResult er = new ExamResult(exam_id_str); er.ShowDialog(this); er.Dispose(); }
private void printExam(string exam_id_str) { #region Error Check if (!System.IO.File.Exists(Application.StartupPath + @"\result.html")) { MessageBox.Show("[Result template file]" + Properties.Resources.FileNotExist, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } #endregion ExamResult er = new ExamResult(exam_id_str); er.ShowDialog(this); er.Dispose(); }