Пример #1
0
 private void LoginDialog_OnLoginComplete(object sender, OnLoginDialogEventArgs e)
 {
     if (StatusReader.log_status == "online")
     {
         Intent nextActivity = new Intent(this, typeof(userAccount));
         StartActivity(nextActivity);
     }
     else
     {
         Toast.MakeText(this, "Login Failed", ToastLength.Short).Show();
     }
 }
Пример #2
0
 private void LoginDialog_OnLoginComplete(object sender, OnLoginDialogEventArgs e)
 {
     if (UserAuthority.isLogged)
     {
         Intent nextActivity = new Intent(this, typeof(userAccount));
         StartActivity(nextActivity);
     }
     else
     {
         Toast.MakeText(this, "Login Failed", ToastLength.Short).Show();
     }
 }