use new configmanager in EDMI
This commit is contained in:
parent
a382b37d59
commit
caad7eda42
@ -18,12 +18,14 @@ Namespace My
|
|||||||
Public Sub App_Startup() Handles Me.Startup
|
Public Sub App_Startup() Handles Me.Startup
|
||||||
Dim oLogConfig As New LogConfig(PathType.AppData)
|
Dim oLogConfig As New LogConfig(PathType.AppData)
|
||||||
|
|
||||||
' Layout files will be saved in %Appdata% (Roaming) so they will be syncronized with the user profile
|
' System Config files like Service Url will be saved in %LocalAppdata% so they will remain on the machine
|
||||||
Dim oUIConfigPath = IO.Path.Combine(_BaseUserConfigPath, ClassConstants.FOLDER_NAME_LAYOUT)
|
Dim oSystemConfigManager As New ConfigManager(Of ClassConfig)(oLogConfig,
|
||||||
|
Windows.Forms.Application.UserAppDataPath,
|
||||||
|
Windows.Forms.Application.CommonAppDataPath)
|
||||||
|
|
||||||
' Set up config Managers for Layout and System Configs
|
' Layout files will be saved in %Appdata% (Roaming) so they will be syncronized with the user profile
|
||||||
Dim oSystemConfigManager As New ConfigManager(Of ClassConfig)(oLogConfig, _BaseUserConfigPath, _BaseMachineConfigPath)
|
Dim oUIConfigPath = IO.Path.Combine(Windows.Forms.Application.UserAppDataPath, ClassConstants.FOLDER_NAME_LAYOUT)
|
||||||
Dim oUIConfigManager As New ConfigManager(Of ClassUIConfig)(oLogConfig, oUIConfigPath, oUIConfigPath)
|
Dim oUIConfigManager As New ConfigManager(Of ClassUIConfig)(oLogConfig, oUIConfigPath)
|
||||||
|
|
||||||
LogConfig = oLogConfig
|
LogConfig = oLogConfig
|
||||||
SystemConfigManager = oSystemConfigManager
|
SystemConfigManager = oSystemConfigManager
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user