Add debug config flag
This commit is contained in:
parent
451dd0097e
commit
57eb7cbec8
@ -3,4 +3,5 @@
|
|||||||
Public Class Config
|
Public Class Config
|
||||||
<ConnectionString>
|
<ConnectionString>
|
||||||
Public Property ConnectionString As String = String.Empty
|
Public Property ConnectionString As String = String.Empty
|
||||||
|
Public Property Debug As Boolean = False
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@ -73,6 +73,8 @@ Public Class frmMonitor
|
|||||||
Logger = LogConfig.GetLogger()
|
Logger = LogConfig.GetLogger()
|
||||||
|
|
||||||
ConfigManager = New ConfigManager(Of Config)(LogConfig, Application.UserAppDataPath, Application.CommonAppDataPath, Application.StartupPath)
|
ConfigManager = New ConfigManager(Of Config)(LogConfig, Application.UserAppDataPath, Application.CommonAppDataPath, Application.StartupPath)
|
||||||
|
ConfigManager.Config.Debug = LogConfig.Debug
|
||||||
|
|
||||||
Patterns = New Patterns2(LogConfig)
|
Patterns = New Patterns2(LogConfig)
|
||||||
FormHelper = New FormHelper(LogConfig, Me)
|
FormHelper = New FormHelper(LogConfig, Me)
|
||||||
ControlHelper = New Common.ControlHelper(LogConfig)
|
ControlHelper = New Common.ControlHelper(LogConfig)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user