Fixed date control crash in Linux
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user