private void InvokeSettingsChanged(EventArgs e) { EventHandler handler = SettingsChanged; if (handler != null) handler(this, e); }