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); }
public void PutBoolean(string key, bool value) { _preferences[key] = new PrefEntry { key = key, value = value.ToString() }; }
public void PutString(string key, string value) { _preferences[key] = new PrefEntry { key = key, value = value}; }
public void PutString(string key, string value) { _preferences[key] = new PrefEntry { key = key, value = value }; }