Esempio n. 1
0
 public void SetToDefault(PaConfigType cfgType)
 {
     SetToDefault(
         ConfigPathHelper.AbsoluteFactoryUserSettingPath(cfgType),
         ConfigPathHelper.AbsoluteUserSettingPath(cfgType));
 }
Esempio n. 2
0
 public T GetConfig <T>(PaConfigType cfgType)
 {
     return(GetConfig <T>(ConfigPathHelper.RelativeUserSettingPath(cfgType)));
 }
Esempio n. 3
0
 protected void SaveConfig <T>(
     PaConfigType cfgType,
     T config)
 {
     SaveConfig(config, ConfigPathHelper.RelativeUserSettingPath(cfgType));
 }
Esempio n. 4
0
 public static string RelativeUserSettingPath(PaConfigType cfgType)
 {
     return(ConfigurePath.ConfigPathDic[cfgType]);
 }
Esempio n. 5
0
 public static string AbsoluteFactoryUserSettingPath(PaConfigType cfgType)
 {
     return(AbsoluteFactoryUserSettingPath(RelativeUserSettingPath(cfgType)));
 }
Esempio n. 6
0
 public static void SetConfigureToDefault(PaConfigType type)
 {
     _cfgManager.SetToDefault(type);
 }
Esempio n. 7
0
 public static void Save <T>(
     PaConfigType type,
     T obj)
 {
     _cfgManager.SaveConfig(type, obj);
 }
Esempio n. 8
0
 public static T Load <T>(PaConfigType type)
 {
     return(_cfgManager.GetConfig <T>(type));
 }