Esempio n. 1
0
 private void SetSharedPrefs()
 {
     if (rememberPass.Checked)
     {
         UserPreferences.SetString("MySharedPrefs", "rememberPass", "true");
         UserPreferences.SetString("MySharedPrefs", "userName", userName.Text);
         UserPreferences.SetString("MySharedPrefs", "password", password.Text);
     }
     else
     {
         UserPreferences.DeleteString("MySharedPrefs", "rememberPass");
         UserPreferences.DeleteString("MySharedPrefs", "userName");
         UserPreferences.DeleteString("MySharedPrefs", "password");
     }
 }
Esempio n. 2
0
 private void ClearLoginToken(string perName)
 {
     UserPreferences.DeleteString(perName, "userId");
 }