/* JDK removed on 03-12-15 - using version filters now
         * private void byDateToolStripMenuItem_Click(object sender, EventArgs e) {
         *  DateForm dateForm = new DateForm();
         *
         *  if (dateForm.ShowDialog() == DialogResult.OK) {
         *      DateTime date = dateForm.dateTimePicker.Value;
         *
         *      ExcelActions.ExportPromptList(date.Date, exportPromptHyperLinks, visioControl);
         *      // required to make sure excel goes away
         *      GC.Collect();
         *      GC.WaitForPendingFinalizers();
         *  }
         * }
         * */


        private void byVersionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            versionStampForm versionStampForm = new versionStampForm();
            String           versionMarker    = "0.0";

            if (versionStampForm.ShowDialog() == DialogResult.OK)
            {
                versionMarker = versionStampForm.versionStamp.Text;

                ExcelActions.ExportPromptListVer(versionMarker, exportPromptHyperLinks, visioControl);
                // required to make sure excel goes away
                GC.Collect();
                GC.WaitForPendingFinalizers();
            }
        }
        /* JDK removed on 03-12-15 - using version filters now
         * private void byDateToolStripMenuItem_Click(object sender, EventArgs e) {
            DateForm dateForm = new DateForm();

            if (dateForm.ShowDialog() == DialogResult.OK) {
                DateTime date = dateForm.dateTimePicker.Value;

                ExcelActions.ExportPromptList(date.Date, exportPromptHyperLinks, visioControl);
                // required to make sure excel goes away
                GC.Collect();
                GC.WaitForPendingFinalizers();
            }
        }
         * */
        private void byVersionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            versionStampForm versionStampForm = new versionStampForm();
            String versionMarker = "0.0";

            if (versionStampForm.ShowDialog() == DialogResult.OK)
            {
                versionMarker = versionStampForm.versionStamp.Text;

                ExcelActions.ExportPromptListVer(versionMarker, exportPromptHyperLinks, visioControl);
                // required to make sure excel goes away
                GC.Collect();
                GC.WaitForPendingFinalizers();
            }
        }