コード例 #1
0
 public void OnAuthenticationSucceeded()
 {
     _bookingProcessIndicator.Visibility = ViewStates.Visible;
     new Thread(() =>
     {
         try
         {
             SecurityProvider.BookSeats(_session, _seats);
             RunOnUiThread(() => Toast.MakeText(this, "Booking successful!", ToastLength.Long).Show());
         }
         catch (Exception ex)
         {
             RunOnUiThread(() => Toast.MakeText(this, ex.Message, ToastLength.Long).Show());
         }
         finally
         {
             RunOnUiThread(() =>
             {
                 _bookingProcessIndicator.Visibility = ViewStates.Invisible;
                 StartActivity(new Intent(this, typeof(MainActivity)));
             });
         }
     }).Start();
 }