Exemplo n.º 1
0
 /// <summary>
 /// Initialize settings, and if the value does not exist, give it a default value
 /// </summary>
 void initializeSettings()
 {
     try {
         SysSettings.init();
         foreach (string key in SysSettings.defaults.Keys)
         {
             string value = SysSettings.getSetting(key, null);
             if (value == null)
             {
                 SysSettings.setSetting(key, SysSettings.defaults[key]);
             }
         }
     } catch { }
 }