protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); WizardPage.Glyph = "\uE128"; WizardPage.Title = "Loading languages"; WizardPage.Subtitle = "🥁 Drumroll..."; WizardPage.BackEnabled = false; WizardPage.NextEnabled = false; LoadingRing.Visibility = Visibility.Visible; SelectionGrid.Visibility = Visibility.Collapsed; _ = ThreadPool.RunAsync(async(IAsyncAction operation) => { var updates = await BuildFetcher.GetAvailableBuildLanguagesAsync(App.ConversionPlan.UpdateData); await CoreApplication.MainView.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { WizardPage.Glyph = "\uE775"; WizardPage.Title = "Ciao, Hola, Bonjour, Hello oder Hallo?"; WizardPage.Subtitle = "What language do you speak?"; WizardPage.BackEnabled = true; WizardPage.NextEnabled = true; dataGrid.ItemsSource = updates; dataGrid.SelectedIndex = 0; LoadingRing.Visibility = Visibility.Collapsed; SelectionGrid.Visibility = Visibility.Visible; }); }); }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); WizardPage.Glyph = "\uE128"; WizardPage.Title = "Loading editions"; WizardPage.Subtitle = "🥁 Drumroll..."; WizardPage.BackEnabled = false; WizardPage.NextEnabled = false; LoadingRing.Visibility = Visibility.Visible; SelectionGrid.Visibility = Visibility.Collapsed; _ = ThreadPool.RunAsync(async(IAsyncAction operation) => { var editions = await BuildFetcher.GetAvailableEditions(App.ConversionPlan.UpdateData, App.ConversionPlan.Language); await CoreApplication.MainView.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { WizardPage.Glyph = "\uE7B8"; WizardPage.Title = "Select the Windows edition"; WizardPage.Subtitle = ""; WizardPage.BackEnabled = true; WizardPage.NextEnabled = true; dataGrid.ItemsSource = editions; dataGrid.SelectedIndex = 0; LoadingRing.Visibility = Visibility.Collapsed; SelectionGrid.Visibility = Visibility.Visible; }); }); }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); WizardPage.Glyph = "\uE128"; WizardPage.Title = "Loading builds"; WizardPage.Subtitle = "🥁 Drumroll..."; WizardPage.BackEnabled = false; WizardPage.NextEnabled = false; _ = ThreadPool.RunAsync(async(IAsyncAction operation) => { var updates = await BuildFetcher.GetAvailableBuildsAsync(App.ConversionPlan.MachineType); await CoreApplication.MainView.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { WizardPage.Glyph = "\uF785"; WizardPage.Title = "How EOL do you want to be today?"; WizardPage.Subtitle = "The selected build will be used for the final medium"; WizardPage.BackEnabled = true; WizardPage.NextEnabled = true; dataGrid.ItemsSource = updates; dataGrid.SelectedIndex = 0; LoadingRing.Visibility = Visibility.Collapsed; SelectionGrid.Visibility = Visibility.Visible; }); }); }