Пример #1
0
 private async void Page_Loaded(object sender, RoutedEventArgs e)
 {
     if (!await WindowsHelloHelper.Auth())
     {
         App.Current.Exit();
     }
 }
Пример #2
0
        private async void SigninFailed_Grid_Tapped(object sender, Windows.UI.Xaml.Input.TappedRoutedEventArgs e)
        {
            if (await WindowsHelloHelper.Auth())
            {
                SigninFailed_Grid.Visibility = Visibility.Collapsed;
                Refresh_Btn.IsEnabled        = true;
                await ViewModel.BuildDeviceList();

                ViewModel.IsAuthed = true;
            }
            else
            {
                await new MessageDialog("CouldNotSignIn".GetLocalized(), "Failed".GetLocalized()).ShowAsync();
                Refresh_Btn.IsEnabled        = false;
                SigninFailed_Grid.Visibility = Visibility.Visible;
                ViewModel.IsAuthed           = false;
            }
        }