private void advancedSettingsToolStripMenuItem_Click(object sender, EventArgs e) { FormOptions formOptions = new FormOptions(); formOptions.ShowDialog(); currentOptions = formOptions.opt; refreshSettings(); }
private void AdvancedSettings_Click(object sender, EventArgs e) { using (var dialog = new FormOptions()) { dialog.options = new Options(currentOptions); if (dialog.ShowDialog() == DialogResult.OK) { currentOptions = dialog.options; RefreshSettings(); } } }