예제 #1
0
        private async Task LoadSkinAsync(Account account)
        {
            if (account.AuthMode != AuthMode.Offline)
            {
                account.Skin = await _skinService.GetSkinAsync(account.Profile);

                if (account.Profile != null)
                {
                    RefreshSkinAsync(account).ConfigureAwait(false);
                }
                else
                {
                    await RefreshSkinAsync(account);
                }
            }
        }
예제 #2
0
        private async Task LoadAvatars(string profileServer)
        {
            IsLoading = true;

            for (int i = 0; i < Profiles.Count; i++)
            {
                Profiles[i].Base64Profile = await _skinService.GetProfileAsync(Profiles[i].Id, profileServer);

                Profiles[i].Skin = await _skinService.GetSkinAsync(Profiles[i].Base64Profile);
            }

            Profiles.Refresh();
            IsLoading = false;
        }