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)
|
||||||
@ -208,7 +210,7 @@ Public Class frmMonitor
|
|||||||
oColumn.Visible = DisplayColumns.Contains(oColumn.FieldName)
|
oColumn.Visible = DisplayColumns.Contains(oColumn.FieldName)
|
||||||
If oColumn.FieldName = "ADDED_WHEN" Then
|
If oColumn.FieldName = "ADDED_WHEN" Then
|
||||||
oColumn.Format.FormatType = FormatType.DateTime
|
oColumn.Format.FormatType = FormatType.DateTime
|
||||||
oColumn.Format.FormatString = "dd.MM.yyyy HH:MM:ss"
|
oColumn.Format.FormatString = "dd.MM.yyyy HH:MM:ss"
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user