Example #1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            Utility.SetStatusBarColor("#212121", "#ffffff", 1);

            log        = e.Parameter as StringKeyValuePair;
            logTB.Text = log.key;
            string logStr = "";

            ShowProgressBar();
            logSV.Visibility = Visibility.Collapsed;
            Task.Factory.StartNew(() =>
            {
                string logsUrl = log.value;
                if (logsUrl.ToLowerInvariant().Contains("/release/releases"))
                {
                    logStr = VSTSService.GetReleaseLogs(logsUrl);
                }
                else
                {
                    logStr = VSTSService.GetBuildTimelineRecordLogs(logsUrl);
                }
            }).ContinueWith(async(Task t) =>
            {
                await this.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
                {
                    logTextTB.Text = logStr;
                    HideProgressBar();

                    logSV.Visibility = Visibility.Visible;
                });
            });
        }