public void UpdateProfileFromCurrentModelSettings()
 {
     foreach (var account in this.KnownUserAccounts)
     {
         CurrentProfile.StoreAccountState(account.AccountName, account.AccountLaunchable);
         foreach (var server in account.Servers)
         {
             var charSetting = new CharacterSetting();
             charSetting.AccountName     = account.AccountName;
             charSetting.ServerName      = server.ServerName;
             charSetting.Active          = server.ServerSelected;
             charSetting.ChosenCharacter = server.ChosenCharacter;
             CurrentProfile.StoreCharacterSetting(charSetting);
         }
     }
 }
Example #2
0
        public void StoreCharacterSetting(CharacterSetting charSetting)
        {
            string key = GetCharacterKey(charSetting);

            _characterSettings[key] = charSetting;
        }
Example #3
0
 private string GetCharacterKey(CharacterSetting charSetting)
 {
     return(GetCharacterKey(accountName: charSetting.AccountName, serverName: charSetting.ServerName));
 }