public static string Read(PrefsGlobal preferencia) { if (_prefs == null) { throw new Exception("No se ha inicializado el administrador de preferencias"); } else { return((string)_prefs._global[preferencia]); } }
public static void Update(PrefsGlobal preferencia, object valor) { if (_prefs == null) { throw new Exception("No se ha inicializado el administrador de preferencias"); } else { if (preferencia == PrefsGlobal.SGDDownloadURL || preferencia == PrefsGlobal.AuthDownloadURL) { valor = (valor as string).EndsWith("/") ? valor : valor + "/"; } _prefs._global[preferencia] = valor; } }
public static void DeleteAll() { PrefsGlobal.DeleteAll(); }
public static void Load() { PrefsGlobal.Load(); }
public static void Save() { PrefsGlobal.Save(); }