Ejemplo n.º 1
0
 public void ModifyEntry(PrefEntry e)
 {
     if (e.remove) {
         PrefContainer.PrefDel(e.key);
         Log (Debugger.Level.Info, "preference ({0}) of type ({1}) removed", e.key, e.type);
         return;
     }
     if (!e.replace) {
         string current = PrefContainer.PrefGet (e.type, e.key);
         if (current != null) {
             Log (Debugger.Level.Info, "preference ({0}) of type ({1}) already exists as ({2}) and was not modified to ({3})", e.key, e.type, current, e.value);
             return;
         }
     }
     PrefContainer.PrefSet (e.type, e.key, e.value);
     Log (Debugger.Level.Info, "preference ({0}) of type ({1}) modified to ({2})", e.key, e.type, e.value);
 }
Ejemplo n.º 2
0
		public void PutBoolean(string key, bool value)
		{
			_preferences[key] = new PrefEntry { key = key, value = value.ToString() };

		}
Ejemplo n.º 3
0
		public void PutString(string key, string value)
		{
			_preferences[key] = new PrefEntry { key = key, value = value};
		}
Ejemplo n.º 4
0
 public void PutBoolean(string key, bool value)
 {
     _preferences[key] = new PrefEntry {
         key = key, value = value.ToString()
     };
 }
Ejemplo n.º 5
0
 public void PutString(string key, string value)
 {
     _preferences[key] = new PrefEntry {
         key = key, value = value
     };
 }