public static bool GetOptions(out Option newOptions, Option option) { OptionND optionWindow = new OptionND(option); optionWindow.ShowDialog(); newOptions = optionWindow.option; return(optionWindow.result); }
private void optionsToolStripMenuItem1_Click(object sender, EventArgs e) { Option newOptions = new Option(); if (!OptionND.GetOptions(out newOptions, options)) { return; } options = newOptions; }