ClipboardWatcher: fix frmMatch
This commit is contained in:
parent
a846da8b58
commit
88e278a3ad
@ -29,7 +29,7 @@ Public Class ProfileSearches
|
|||||||
Try
|
Try
|
||||||
If _Environment.Service.IsActive = True Then
|
If _Environment.Service.IsActive = True Then
|
||||||
Try
|
Try
|
||||||
Dim oSplit() As String = _Environment.Service.Address.Split(";")
|
Dim oSplit() As String = _Environment.Service.Address.Split(":")
|
||||||
Dim oAppServerAddress As String = oSplit(0)
|
Dim oAppServerAddress As String = oSplit(0)
|
||||||
Dim oAppServerPort As Integer = 9000
|
Dim oAppServerPort As Integer = 9000
|
||||||
If oSplit.Length = 2 Then
|
If oSplit.Length = 2 Then
|
||||||
|
|||||||
@ -228,30 +228,35 @@ Public Class frmMatch
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Async Sub TileControlMatch_ItemClick(sender As Object, e As TileItemEventArgs) Handles TileControlMatch.ItemClick
|
Private Async Sub TileControlMatch_ItemClick(sender As Object, e As TileItemEventArgs) Handles TileControlMatch.ItemClick
|
||||||
Dim oItem As TileItem = e.Item
|
Try
|
||||||
Dim oProfileId As Integer = oItem.Tag
|
Dim oItem As TileItem = e.Item
|
||||||
|
Dim oProfileId As Integer = oItem.Tag
|
||||||
|
|
||||||
Dim oProfileSearch As New ProfileSearches(_LogConfig, _Environment, _Params)
|
Dim oProfileSearch As New ProfileSearches(_LogConfig, _Environment, _Params)
|
||||||
Dim oProfile As ProfileData = _Params.MatchingProfiles.
|
Dim oProfile As ProfileData = _Params.MatchingProfiles.
|
||||||
Where(Function(p) p.Guid = oProfileId).
|
Where(Function(p) p.Guid = oProfileId).
|
||||||
ToList().
|
ToList().
|
||||||
First()
|
First()
|
||||||
|
|
||||||
Select Case oItem.Group.Name
|
Select Case oItem.Group.Name
|
||||||
Case TileGroupData.Name
|
Case TileGroupData.Name
|
||||||
Dim oSearches = Await oProfileSearch.LoadDataSearchesAsync(oProfileId)
|
Dim oSearches = Await oProfileSearch.LoadDataSearchesAsync(oProfileId)
|
||||||
OpenDataResults(oProfile, oSearches)
|
OpenDataResults(oProfile, oSearches)
|
||||||
|
|
||||||
Case TileGroupDocuments.Name
|
Case TileGroupDocuments.Name
|
||||||
Dim oSearches = Await oProfileSearch.LoadDocumentSearchesAsync(oProfileId)
|
Dim oSearches = Await oProfileSearch.LoadDocumentSearchesAsync(oProfileId)
|
||||||
OpenDocumentResults(oProfile, oSearches)
|
OpenDocumentResults(oProfile, oSearches)
|
||||||
|
|
||||||
Case Else
|
Case Else
|
||||||
' TODO: Load combined results
|
' TODO: Load combined results
|
||||||
'OpenResultForms(oProfileId, ProfileType.ANY)
|
'OpenResultForms(oProfileId, ProfileType.ANY)
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
Hide()
|
Hide()
|
||||||
|
Catch ex As Exception
|
||||||
|
MsgBox($"Error while loading Searches: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, Text)
|
||||||
|
_Logger.Error(ex)
|
||||||
|
End Try
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub OpenDocumentResults(Profile As ProfileData, Searches As List(Of ProfileSearches.Search))
|
Private Sub OpenDocumentResults(Profile As ProfileData, Searches As List(Of ProfileSearches.Search))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user