Пример #1
0
 private async void GetInfo(Launch.Login.IAuth author) {
     info = await author.LoginAsync(System.Threading.CancellationToken.None);
     progressbar.Visibility = Visibility.Collapsed;
     if (info != null)
     {
         if (string.IsNullOrWhiteSpace(info.ErrorMsg) & info.Pass)
         {
             lblName.Content = info.DisplayName;
             lblUUID.Content = info.UUID;
             butNext.IsEnabled = true;
         }
         else
         {
             lblName.Content = Lang.LangManager.GetLangFromResource("Error");
             lblUUID.Content = Lang.LangManager.GetLangFromResource("Error");
         }
     }
     else
     {
         lblName.Content = Lang.LangManager.GetLangFromResource("Error");
         lblUUID.Content = Lang.LangManager.GetLangFromResource("Error");
     }
 }