Fixed date control crash in Linux

This commit is contained in:
MikeMaximus
2017-12-07 21:59:19 -06:00
parent 08e8ed58d9
commit c55875e31a
2 changed files with 10 additions and 5 deletions
+9 -4
View File
@@ -66,10 +66,15 @@ Public Class frmSessions
dtpEnd.Format = DateTimePickerFormat.Custom
dtpStart.CustomFormat = sDateTimeFormat
dtpEnd.CustomFormat = sDateTimeFormat
dtpStart.MinDate = dtMinDate
dtpStart.MaxDate = dtMaxDate
dtpEnd.MinDate = dtMinDate
dtpEnd.MaxDate = dtMaxDate
'Setting max or min dates breaks the control in Mono
If Not mgrCommon.IsUnix Then
dtpStart.MinDate = dtMinDate
dtpStart.MaxDate = dtMaxDate
dtpEnd.MinDate = dtMinDate
dtpEnd.MaxDate = dtMaxDate
End If
dtpStart.Value = dtMinDate
dtpEnd.Value = dtMaxDate
+1 -1
View File
@@ -13,7 +13,7 @@ Public Class mgrSettings
Private bAutoMark As Boolean = False
Private bSync As Boolean = True
Private bTimeTracking As Boolean = True
Private bSessionTracking As Boolean = True
Private bSessionTracking As Boolean = False
Private bSupressBackup As Boolean = False
Private iSupressBackupThreshold As Integer = 10
Private iCompressionLevel As Integer = 5