Exemplo n.º 1
0
 private async void ButtonBack_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
 {
     await RunOnUIThreadAsync(CoreDispatcherPriority.Normal, () =>
     {
         if (currentStep == SetupDialogStep.Saving)
         {
             ButtonBack.IsEnabled         = false;
             currentStep                  = SetupDialogStep.Privacy;
             SwitchPresenterContent.Value = "Privacy";
         }
     });
 }
Exemplo n.º 2
0
 private async void ButtonConfirm_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
 {
     await RunOnUIThreadAsync(CoreDispatcherPriority.Normal, () =>
     {
         if (currentStep == SetupDialogStep.Privacy)
         {
             currentStep = SetupDialogStep.Saving;
             SwitchPresenterContent.Value = "Saving";
             ButtonBack.IsEnabled         = true;
         }
         else if (currentStep == SetupDialogStep.Saving)
         {
             closing = true;
             this.Hide();
         }
     });
 }