From caad7eda42272e8788b9e31b6ceaf79db0f3be17 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Fri, 5 Apr 2019 15:50:20 +0200 Subject: [PATCH] use new configmanager in EDMI --- EDMI_ClientSuite/ApplicationEvents.vb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/EDMI_ClientSuite/ApplicationEvents.vb b/EDMI_ClientSuite/ApplicationEvents.vb index a41151c6..4bd9c660 100644 --- a/EDMI_ClientSuite/ApplicationEvents.vb +++ b/EDMI_ClientSuite/ApplicationEvents.vb @@ -18,12 +18,14 @@ Namespace My Public Sub App_Startup() Handles Me.Startup Dim oLogConfig As New LogConfig(PathType.AppData) - ' Layout files will be saved in %Appdata% (Roaming) so they will be syncronized with the user profile - Dim oUIConfigPath = IO.Path.Combine(_BaseUserConfigPath, ClassConstants.FOLDER_NAME_LAYOUT) + ' System Config files like Service Url will be saved in %LocalAppdata% so they will remain on the machine + 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 - Dim oSystemConfigManager As New ConfigManager(Of ClassConfig)(oLogConfig, _BaseUserConfigPath, _BaseMachineConfigPath) - Dim oUIConfigManager As New ConfigManager(Of ClassUIConfig)(oLogConfig, oUIConfigPath, oUIConfigPath) + ' Layout files will be saved in %Appdata% (Roaming) so they will be syncronized with the user profile + Dim oUIConfigPath = IO.Path.Combine(Windows.Forms.Application.UserAppDataPath, ClassConstants.FOLDER_NAME_LAYOUT) + Dim oUIConfigManager As New ConfigManager(Of ClassUIConfig)(oLogConfig, oUIConfigPath) LogConfig = oLogConfig SystemConfigManager = oSystemConfigManager