private async void RefreshArenas()
        {
            if (CurrentTeam != null)
            {
                var selectedArenaId = SelectedArena?.Id;
                AvailableArenas?.Clear();
                AvailableArenas = await GetTeamArenas();

                SelectedArena = AvailableArenas.SingleOrDefault(x => x.Id == selectedArenaId) ??
                                AvailableArenas.SingleOrDefault(x => x.Name == CurrentTeam.Name);
            }
        }
示例#2
0
        private async void FetchAvailableArenas()
        {
            AvailableArenas = await _arenaClient.GetTeamArenas(CurrentTeam.Name, _cacheService.Load <String>("PSWD"));

            SelectedArena = AvailableArenas.SingleOrDefault(x => x.Name == CurrentTeam.Name);
        }
        private async void FetchAvailableArenas()
        {
            AvailableArenas = await GetTeamArenas();

            SelectedArena = AvailableArenas.SingleOrDefault(x => x.Name == CurrentTeam.Name);
        }