private void OnMenuPrefs(object sender, EventArgs e) { var serverLocal = Properties.Settings.Default.LocalOnly; WindowPreferences prefs = new WindowPreferences(); prefs.ShowDialog(); if (serverLocal != Properties.Settings.Default.LocalOnly) { ServerStop(); ServerStart(); } }