Changes for issue #116
This commit is contained in:
@@ -57,8 +57,13 @@ Public Class frmSessions
|
|||||||
Private Sub ResetFilterFields()
|
Private Sub ResetFilterFields()
|
||||||
Dim dtMinDate As DateTime = mgrSessions.GetMinimumDateTime
|
Dim dtMinDate As DateTime = mgrSessions.GetMinimumDateTime
|
||||||
Dim dtMaxDate As DateTime = mgrSessions.GetMaximumDateTime
|
Dim dtMaxDate As DateTime = mgrSessions.GetMaximumDateTime
|
||||||
|
Dim dtRecent As DateTime = dtMaxDate.Subtract(TimeSpan.FromDays(7))
|
||||||
Dim sDateTimeFormat = CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern & " " & CultureInfo.CurrentCulture.DateTimeFormat.LongTimePattern
|
Dim sDateTimeFormat = CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern & " " & CultureInfo.CurrentCulture.DateTimeFormat.LongTimePattern
|
||||||
|
|
||||||
|
If dtRecent < dtMinDate Then
|
||||||
|
dtRecent = dtMinDate
|
||||||
|
End If
|
||||||
|
|
||||||
bInitFinished = False
|
bInitFinished = False
|
||||||
|
|
||||||
'Init Date Fields
|
'Init Date Fields
|
||||||
@@ -75,7 +80,7 @@ Public Class frmSessions
|
|||||||
dtpEnd.MaxDate = dtMaxDate
|
dtpEnd.MaxDate = dtMaxDate
|
||||||
End If
|
End If
|
||||||
|
|
||||||
dtpStart.Value = dtMinDate
|
dtpStart.Value = dtRecent
|
||||||
dtpEnd.Value = dtMaxDate
|
dtpEnd.Value = dtMaxDate
|
||||||
|
|
||||||
'Init Text Filter
|
'Init Text Filter
|
||||||
|
|||||||
Reference in New Issue
Block a user