Пример #1
0
        public static T Get <T>(String settingName, T defaultValue)
        {
            T t;

            if (AppSettingsProvider.TryGet <T>(settingName, out t))
            {
                return(t);
            }
            return(defaultValue);
        }
Пример #2
0
 private void Set <T>(String key, T value)
 {
     try
     {
         AppSettingsProvider.Set <T>(key, value);
     }
     catch (Exception ex)
     {
         var msgDlg = new MessageDialog(ex.Message);
     }
 }
Пример #3
0
 public static void Set(String settingName, String value)
 {
     AppSettingsProvider.Set <String>(settingName, value);
 }
Пример #4
0
 private T Get <T>(string key, T defaultValue)
 {
     return(AppSettingsProvider.Get <T>(key, defaultValue));
 }