private void ButtonOptionsClick(object sender, ItemClickEventArgs e) { using (SettingsBox form = new SettingsBox()) { DialogResult dr = form.ShowDialog(this); if (dr == DialogResult.OK) { Settings.Options = form.GetSettings(); } } }
private void ShowSettingsBox() { using (SettingsBox form = new SettingsBox()) { if (form.ShowDialog(this) == DialogResult.OK) { Settings.Options = form.GetSettings(); } } }