///<summary>Sets the value of the DefaultSettingsMode property for an editor.</summary> public void SetDefaultSettingsMode(BaseEdit editor, DefaultSettingsMode value) { //If we're still initializing, apply the settings //(and update the property value) after we finish. //If we're not initializing, apply immediately. if (initializing) { queuedApplications.Add(delegate { SetDefaultSettingsMode(editor, value); }); } else { if (value != DefaultSettingsMode.None) { value = ApplySettings(editor) ? DefaultSettingsMode.Active : DefaultSettingsMode.Inactive; } } //If we're initializing, set the value twice - once immediately and once after applying. values[editor] = value; }
///<summary>Sets the value of the DefaultSettingsMode property for an editor.</summary> public void SetDefaultSettingsMode(BaseEdit editor, DefaultSettingsMode value) { //If we're still initializing, apply the settings //(and update the property value) after we finish. //If we're not initializing, apply immediately. if (initializing) queuedApplications.Add(delegate { SetDefaultSettingsMode(editor, value); }); else { if (value != DefaultSettingsMode.None) value = ApplySettings(editor) ? DefaultSettingsMode.Active : DefaultSettingsMode.Inactive; } //If we're initializing, set the value twice - once immediately and once after applying. values[editor] = value; }