private void exportToHxsFileToolStripMenuItem_Click(object sender, EventArgs e) { GenerateHxsForm exportDialog = new GenerateHxsForm(); if (exportDialog.ShowDialog() != DialogResult.OK) { return; } appController.CreateHxs(exportDialog.FileTextBox.Text, exportDialog.TitleTextBox.Text, exportDialog.CopyrightComboBox.Text, tocLocale, ContentDataSet); }
private void exportToHxsFileToolStripMenuItem_Click(object sender, EventArgs e) { if (ContentDataSet.Tables["Item"].Rows.Count == 0) return; // Test if Help SDK Install - Suck it and see try { HxComp hxsCompiler = new HxComp(); hxsCompiler.Initialize(); hxsCompiler = null; } catch { MessageBox.Show(@"Please install the VS 2005\2008 SDK, which includes the MS Help 2.x SDK and compiler.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } GenerateHxsForm exportDialog = new GenerateHxsForm(); if (exportDialog.ShowDialog() != DialogResult.OK) { return; } appController.CreateHxs(exportDialog.FileTextBox.Text, exportDialog.TitleTextBox.Text, exportDialog.CopyrightComboBox.Text, currentLocale, ContentDataSet); ShowFileinExplorer(exportDialog.FileTextBox.Text); }