private async void ProcessGetLeaderboardUI() { ShowProgressBar(true); try { var leaderBoardModel = await MyILPClient.GetLeaderboard(); tbMyName.Text = UserInformation.FullName; tbMyBatch.Text = UserInformation.LGName; tbMyLevel.Text = AchievementsHelper.GetAchievementString(leaderBoardModel.MyPoints); gridMain.DataContext = leaderBoardModel; } catch (HttpRequestException exception) { tbMyBatch.Text = string.Empty; tbMyLevel.Text = "No internet connection"; (new MessageDialog(exception.Message, "Error")).ShowAsync().GetResults(); } finally { ShowProgressBar(false); } }