public void SetToDefault(PaConfigType cfgType) { SetToDefault( ConfigPathHelper.AbsoluteFactoryUserSettingPath(cfgType), ConfigPathHelper.AbsoluteUserSettingPath(cfgType)); }
public T GetConfig <T>(PaConfigType cfgType) { return(GetConfig <T>(ConfigPathHelper.RelativeUserSettingPath(cfgType))); }
protected void SaveConfig <T>( PaConfigType cfgType, T config) { SaveConfig(config, ConfigPathHelper.RelativeUserSettingPath(cfgType)); }
public static string RelativeUserSettingPath(PaConfigType cfgType) { return(ConfigurePath.ConfigPathDic[cfgType]); }
public static string AbsoluteFactoryUserSettingPath(PaConfigType cfgType) { return(AbsoluteFactoryUserSettingPath(RelativeUserSettingPath(cfgType))); }
public static void SetConfigureToDefault(PaConfigType type) { _cfgManager.SetToDefault(type); }
public static void Save <T>( PaConfigType type, T obj) { _cfgManager.SaveConfig(type, obj); }
public static T Load <T>(PaConfigType type) { return(_cfgManager.GetConfig <T>(type)); }