Пример #1
0
        public AuthenticationPage()
        {
            InitializeComponent();

            if (Prefs.Contains("logged_in") && Prefs.Get <bool>("logged_in"))
            {
                usernameEntry.Text = Prefs.Get <string>("username");
                passwordEntry.Text = Prefs.Get <string>("password");
            }
        }
Пример #2
0
 /// <summary>
 /// Checks if provided key is stored.
 /// </summary>
 /// <param name="key">Key name to check.</param>
 /// <returns>Returns true if key is stored. False otherwise.</returns>
 public bool Contains(string key)
 {
     return(TizenPreference.Contains(key));
 }