ZooFlow: WIP Search

This commit is contained in:
Jonathan Jenne
2021-11-25 15:48:00 +01:00
parent 96d77e9f68
commit 297a8d144b
8 changed files with 227 additions and 114 deletions

View File

@@ -1,6 +1,7 @@
Public Class SearchFilter
Namespace Search
Public Class SearchFilter
Public Shared Property DefaultFilters As New List(Of FilterTimeframe) From {
Public Shared Property DefaultFilters As New List(Of FilterTimeframe) From {
New FilterTimeframe() With {.Name = "Kein", .DisableFilter = True, .[To] = Nothing},
New FilterTimeframe() With {.Name = "Eigener", .CustomFilter = True, .[To] = Date.Now, .From = Date.Now},
New FilterTimeframe() With {
@@ -21,15 +22,17 @@
}
}
Public Class FilterTimeframe
Public Property Name As String
Public Property From As Date
Public Property [To] As Date = Date.Now
Public Property DisableFilter As Boolean = False
Public Property CustomFilter As Boolean = False
Public Class FilterTimeframe
Public Property Name As String
Public Property From As Date
Public Property [To] As Date = Date.Now
Public Property DisableFilter As Boolean = False
Public Property CustomFilter As Boolean = False
Public Overrides Function ToString() As String
Return Name.ToString
End Function
Public Overrides Function ToString() As String
Return Name.ToString
End Function
End Class
End Class
End Class
End Namespace