public void StoreCharacterSetting(CharacterSetting setting) { if (setting == null) { return; } CharacterSettings.RemoveAll(cs => cs.Id == setting.Id); CharacterSettings.Add(setting); SaveSettings(); }
public CharacterSetting RetrieveCharacterSetting(int id) { CharacterSetting setting = CharacterSettings.Find(cs => cs.Id == id); return(setting != default(CharacterSetting) ? setting : null); }