implement search by control bounds

This commit is contained in:
Jonathan Jenne
2019-09-19 16:20:09 +02:00
parent 88bae3ee92
commit a765fe4cce
13 changed files with 1673 additions and 416 deletions

View File

@@ -24,12 +24,6 @@ Public Class frmProfileMatch
Size = ConfigManager.Config.MatchWindowSize
End If
If USER_LANGUAGE = "de-DE" Then
Label1.Text = $"Clipboard Watcher hat mehr als einen Match für Ihre Suche nach ""{CURRENT_CLIPBOARD_CONTENTS}"" gefunden:"
Else
Label1.Text = $"Clipboard Watcher found more than on match for your search for ""{CURRENT_CLIPBOARD_CONTENTS}"":"
End If
Dim oCreatedTiles = CreateTiles()
If oCreatedTiles = -1 Then
@@ -41,6 +35,9 @@ Public Class frmProfileMatch
Me.Close()
End If
Dim oMatchString = IIf(oCreatedTiles = 1, "1 Match", $"{oCreatedTiles} Matches")
Label1.Text = String.Format(Label1.Text, oMatchString, CURRENT_CLIPBOARD_CONTENTS)
' Open Result Forms directly if only one match found
If oCreatedTiles = 1 Then
Dim oProfile As ProfileData = CURRENT_MATCHING_PROFILES.First()