Beispiel #1
0
		private void SavePreference (SipperPreference preference, string value)
		{			
			var pref = PreferenceManager.GetDefaultSharedPreferences(this);
			var editor = pref.Edit();
			editor.PutString (preference.ToString (), value);
			editor.Commit ();
		}
Beispiel #2
0
		private string LoadPreference (SipperPreference preference)
		{
			var prefs = PreferenceManager.GetDefaultSharedPreferences(this);
			var pref = preference.ToString ();
			if (prefs.Contains (pref)) {
				return prefs.GetString (pref, string.Empty);
			}
			return "";
		}