private void rebuildScriptToolStripMenuItem_Click(object sender, EventArgs e) { var opts = new ScriptRebuildOptions(currentDmsPath); opts.ShowDialog(this); opts = null; }
private void rebuildScriptToolStripMenuItem_Click(object sender, EventArgs e) { if (scriptOpts == null) { scriptOpts = new ScriptRebuildOptions(currentDmsPath); } else { /* make sure DMS path is always the latest */ scriptOpts.UpdateDMSPath(currentDmsPath); } scriptOpts.ShowDialog(this); }