UseAppConfig integriert wie in taskFLOW
This commit is contained in:
parent
c6d49b988b
commit
e2f8607592
@ -13,6 +13,9 @@
|
|||||||
<setting name="GDPICTURE_VERSION" serializeAs="String">
|
<setting name="GDPICTURE_VERSION" serializeAs="String">
|
||||||
<value>11.2024</value>
|
<value>11.2024</value>
|
||||||
</setting>
|
</setting>
|
||||||
|
<setting name="UseAppConfig" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
</Global_Indexer.My.MySettings>
|
</Global_Indexer.My.MySettings>
|
||||||
<DevExpress.LookAndFeel.Design.AppSettings>
|
<DevExpress.LookAndFeel.Design.AppSettings>
|
||||||
<setting name="DefaultAppSkin" serializeAs="String">
|
<setting name="DefaultAppSkin" serializeAs="String">
|
||||||
@ -63,7 +66,9 @@
|
|||||||
</DevExpress.LookAndFeel.Design.AppSettings>
|
</DevExpress.LookAndFeel.Design.AppSettings>
|
||||||
</applicationSettings>
|
</applicationSettings>
|
||||||
<connectionStrings>
|
<connectionStrings>
|
||||||
<add name="Global_Indexer.My.MySettings.DD_ECMConnectionString" connectionString="Data Source=SDD-VMP04-SQL17\DD_DEVELOP01;Initial Catalog=DD_ECM;Persist Security Info=True;User ID=sa;Password=dd" providerName="System.Data.SqlClient" />
|
<add name="Global_Indexer.My.MySettings.DD_ECMConnectionString"
|
||||||
|
connectionString="Data Source=SDD-VMP04-SQL17\DD_DEVELOP01;Initial Catalog=DD_ECM;Persist Security Info=True;User ID=sa;Password=dd"
|
||||||
|
providerName="System.Data.SqlClient" />
|
||||||
</connectionStrings>
|
</connectionStrings>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
|
||||||
|
|||||||
@ -25,8 +25,13 @@ Public Class ClassInit
|
|||||||
Dim oUtils = New ConfigUtils(LOGCONFIG)
|
Dim oUtils = New ConfigUtils(LOGCONFIG)
|
||||||
oUtils.MigrateUserAppDataConfig(Application.UserAppDataPath, Application.ProductName, "fileFLOW")
|
oUtils.MigrateUserAppDataConfig(Application.UserAppDataPath, Application.ProductName, "fileFLOW")
|
||||||
oUtils.MigrateCommonAppDataConfig(Application.CommonAppDataPath, Application.ProductName, "fileFLOW")
|
oUtils.MigrateCommonAppDataConfig(Application.CommonAppDataPath, Application.ProductName, "fileFLOW")
|
||||||
|
Dim oCommonAppDataPath = Application.CommonAppDataPath
|
||||||
CONFIG = New ConfigManager(Of ClassConfig)(LOGCONFIG, Application.UserAppDataPath, Application.CommonAppDataPath, Application.StartupPath)
|
Dim oStartupPath = Application.StartupPath
|
||||||
|
If My.Settings.UseAppConfig = True Then
|
||||||
|
LOGGER.Info("Achtung: Anstatt ComputerConfig wird AppConfig benutzt! (UseAppConfig in Appdata)")
|
||||||
|
oCommonAppDataPath = oStartupPath
|
||||||
|
End If
|
||||||
|
CONFIG = New ConfigManager(Of ClassConfig)(LOGCONFIG, Application.UserAppDataPath, oCommonAppDataPath, Application.StartupPath)
|
||||||
|
|
||||||
LOGCONFIG.Debug = CONFIG.Config.LogDEBUG
|
LOGCONFIG.Debug = CONFIG.Config.LogDEBUG
|
||||||
LOGGER.Info("Debug log set to: [{0}]", LOGCONFIG.Debug)
|
LOGGER.Info("Debug log set to: [{0}]", LOGCONFIG.Debug)
|
||||||
|
|||||||
11
Global_Indexer/My Project/Settings.Designer.vb
generated
11
Global_Indexer/My Project/Settings.Designer.vb
generated
@ -15,7 +15,7 @@ Option Explicit On
|
|||||||
Namespace My
|
Namespace My
|
||||||
|
|
||||||
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.9.0.0"), _
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.14.0.0"), _
|
||||||
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
Partial Friend NotInheritable Class MySettings
|
Partial Friend NotInheritable Class MySettings
|
||||||
Inherits Global.System.Configuration.ApplicationSettingsBase
|
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||||
@ -73,6 +73,15 @@ Namespace My
|
|||||||
Return CType(Me("GDPICTURE_VERSION"),String)
|
Return CType(Me("GDPICTURE_VERSION"),String)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
<Global.System.Configuration.ApplicationScopedSettingAttribute(), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Configuration.DefaultSettingValueAttribute("False")> _
|
||||||
|
Public ReadOnly Property UseAppConfig() As Boolean
|
||||||
|
Get
|
||||||
|
Return CType(Me("UseAppConfig"),Boolean)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
End Class
|
End Class
|
||||||
End Namespace
|
End Namespace
|
||||||
|
|
||||||
|
|||||||
@ -13,5 +13,8 @@
|
|||||||
<Setting Name="GDPICTURE_VERSION" Type="System.String" Scope="Application">
|
<Setting Name="GDPICTURE_VERSION" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">11.2024</Value>
|
<Value Profile="(Default)">11.2024</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
|
<Setting Name="UseAppConfig" Type="System.Boolean" Scope="Application">
|
||||||
|
<Value Profile="(Default)">False</Value>
|
||||||
|
</Setting>
|
||||||
</Settings>
|
</Settings>
|
||||||
</SettingsFile>
|
</SettingsFile>
|
||||||
Loading…
x
Reference in New Issue
Block a user