private void SetUIElements()
        {
            gameCover.Source = sent_GameData.GameCoverCacheImage;

            if (gameCover.Source == null)
            {
                ImageWebHandler.FetchImageResponse(sent_GameData);
                gameCover.Source = sent_GameData.GameCoverCacheImage;
            }

            gameID.Text               = string.Format("{0}", sent_GameData.GameID);
            gameTitle.Text            = sent_GameData.GameTitle;
            gamePlatform.SelectedItem = "Auto";
        }
Esempio n. 2
0
        //Retrieve the selected item and send the data over to the AddNewGameManually page
        private void SearchList_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
        {
            if (SearchList.SelectedItem == null)
            {
                return;
            }

            client.CancelPendingRequests();

            var data = SearchList.SelectedItem as GameData;

            ImageWebHandler.FetchImageResponse(data);

            AddNewGameManually.sent_GameData = new GameData(data);

            NavigationService.Navigate(new Uri("/AddNewGameManually.xaml", UriKind.RelativeOrAbsolute));

            SearchList.SelectedItem = null;
            data = null;
        }
Esempio n. 3
0
 private async void SearchList_Loaded_1(object sender, RoutedEventArgs e)
 {
     ImageWebHandler.FormSearchResultsList();
     await ImageWebHandler.FetchImageResponse(App.ViewModel.SearchView.GamesList);
 }