Ejemplo n.º 1
0
 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]);
     }
 }
Ejemplo n.º 2
0
 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;
     }
 }
Ejemplo n.º 3
0
 public static void DeleteAll()
 {
     PrefsGlobal.DeleteAll();
 }
Ejemplo n.º 4
0
 public static void Load()
 {
     PrefsGlobal.Load();
 }
Ejemplo n.º 5
0
 public static void Save()
 {
     PrefsGlobal.Save();
 }