Zooflow: round up the search form

This commit is contained in:
Jonathan Jenne
2022-05-23 16:30:18 +02:00
parent 39c69704f4
commit 92559f4d6e
12 changed files with 180 additions and 196 deletions

View File

@@ -32,6 +32,8 @@ Public Class frmFlowSearch2
TokenTable = GetTokenTable()
ComboBoxDateAttributes.Properties.Items.AddRange(LoadDateAttributes())
ComboBoxDateAttributes.SelectedIndex = 0
GridPredefinedSearches.DataSource = LoadPredefinedSearches()
Dim oTokens = GetTokensFromTable(Of AttributeValueToken)(TokenTable)
@@ -152,6 +154,10 @@ Public Class frmFlowSearch2
Await RunSearch2(GetTokens())
End Sub
Private Async Sub BarButtonItem1_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles BarButtonItem1.ItemClick
Await RunSearch2(GetTokens())
End Sub
Private Async Function RunSearch2(pTokens As IEnumerable(Of Token)) As Threading.Tasks.Task
Dim oHandle = StartUpdateUI()
Dim oSearchTitle As String = "Suche"
@@ -368,4 +374,14 @@ Public Class frmFlowSearch2
Private Sub TokenEditEx1_Properties_TokenAdded(sender As Object, e As TokenEditTokenAddedEventArgs) Handles TokenEditEx1.Properties.TokenAdded
End Sub
Private Sub BarButtonItem2_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles BarButtonItem2.ItemClick
FormLoading = True
DateEditFrom.EditValue = Nothing
DateEditTo.EditValue = Nothing
CheckEdit1.IsOn = False
ComboBoxDateAttributes.SelectedIndex = 0
TokenEditEx1.EditValue = Nothing
FormLoading = False
End Sub
End Class