protected override void optionsToolStripMenuItem_Click(object sender, EventArgs e) { if (optionsDialog == null) { optionsDialog = new OptionsDialog(); } optionsDialog.WatchFolder = watchFolder; optionsDialog.OutputFolder = outputFolder; optionsDialog.WatchEnabled = watchEnabled; optionsDialog.DangAmbigsPath = dangAmbigsPath; optionsDialog.DangAmbigsEnabled = dangAmbigsOn; optionsDialog.CurLangCode = curLangCode; optionsDialog.OutputFormat = outputFormat; if (optionsDialog.ShowDialog() == DialogResult.OK) { watchFolder = optionsDialog.WatchFolder; outputFolder = optionsDialog.OutputFolder; watchEnabled = optionsDialog.WatchEnabled; dangAmbigsPath = optionsDialog.DangAmbigsPath; dangAmbigsOn = optionsDialog.DangAmbigsEnabled; curLangCode = optionsDialog.CurLangCode; outputFormat = optionsDialog.OutputFormat; updateWatch(); } }