private void Action_Settings(object sender, EventArgs e) { SafeExecutionContext.Execute( this, () => { var settingsForm = new FrmSettings(this.settings, this.extensionManager, this.styleManager); if (settingsForm.ShowDialog() == DialogResult.OK) { this.UpdateSettings(); } }); }