Fixed date control crash in Linux
This commit is contained in:
@@ -66,10 +66,15 @@ Public Class frmSessions
|
|||||||
dtpEnd.Format = DateTimePickerFormat.Custom
|
dtpEnd.Format = DateTimePickerFormat.Custom
|
||||||
dtpStart.CustomFormat = sDateTimeFormat
|
dtpStart.CustomFormat = sDateTimeFormat
|
||||||
dtpEnd.CustomFormat = sDateTimeFormat
|
dtpEnd.CustomFormat = sDateTimeFormat
|
||||||
|
|
||||||
|
'Setting max or min dates breaks the control in Mono
|
||||||
|
If Not mgrCommon.IsUnix Then
|
||||||
dtpStart.MinDate = dtMinDate
|
dtpStart.MinDate = dtMinDate
|
||||||
dtpStart.MaxDate = dtMaxDate
|
dtpStart.MaxDate = dtMaxDate
|
||||||
dtpEnd.MinDate = dtMinDate
|
dtpEnd.MinDate = dtMinDate
|
||||||
dtpEnd.MaxDate = dtMaxDate
|
dtpEnd.MaxDate = dtMaxDate
|
||||||
|
End If
|
||||||
|
|
||||||
dtpStart.Value = dtMinDate
|
dtpStart.Value = dtMinDate
|
||||||
dtpEnd.Value = dtMaxDate
|
dtpEnd.Value = dtMaxDate
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ Public Class mgrSettings
|
|||||||
Private bAutoMark As Boolean = False
|
Private bAutoMark As Boolean = False
|
||||||
Private bSync As Boolean = True
|
Private bSync As Boolean = True
|
||||||
Private bTimeTracking As Boolean = True
|
Private bTimeTracking As Boolean = True
|
||||||
Private bSessionTracking As Boolean = True
|
Private bSessionTracking As Boolean = False
|
||||||
Private bSupressBackup As Boolean = False
|
Private bSupressBackup As Boolean = False
|
||||||
Private iSupressBackupThreshold As Integer = 10
|
Private iSupressBackupThreshold As Integer = 10
|
||||||
Private iCompressionLevel As Integer = 5
|
Private iCompressionLevel As Integer = 5
|
||||||
|
|||||||
Reference in New Issue
Block a user