/// <summary> /// Adds the custom setting. /// </summary> /// <param name="setting">The setting.</param> protected void AddCustomSetting(Setting setting) { if (!SettingKeys.Contains(setting.Key)) { SettingKeys.Add(setting.Key); TypeSettings.Add(setting); } }
/// <summary> /// Fetches the item settings. /// </summary> protected override void FetchTypeSettings() { base.FetchTypeSettings(); for (int i = 0; i <= _defaultsettings.Count - 1; i++) { if (!TypeSettings.ContainsKey(_defaultsettings[i].Key)) { TypeSettings.Add(_defaultsettings[i].Key, _defaultsettings[i]); } } }