ClipboardWatcher: Catchall profiles

This commit is contained in:
Jonathan Jenne
2020-12-18 14:28:49 +01:00
parent 8907f64bf9
commit ac71352c24
3 changed files with 55 additions and 8 deletions

View File

@@ -49,11 +49,16 @@ Public Class ProfileMatch
Return oNode
End Function
Public Function NewProcessNode(Profile As ProfileData, Process As ProcessData, IsMatch As Boolean) As TreeNode
Public Function NewProcessNode(Profile As ProfileData, Process As ProcessData, IsMatch As Boolean, IsCatchAll As Boolean) As TreeNode
_Logger.Debug("New Process Node for Profile {0} and ProcessName {1}", Profile.Name, Process.ProcessName)
Dim oMatchText = IIf(IsMatch, "MATCH", "NO MATCH")
Dim oText = $"{GetMatchText(IsMatch)} on ProcessName {Process.ProcessName}"
Dim oText As String
If IsCatchAll Then
oText = $"{GetMatchText(IsMatch)} on Catch-All Process"
Else
oText = $"{GetMatchText(IsMatch)} on ProcessName {Process.ProcessName}"
End If
Dim oNode As New TreeNode() With {
.Text = oText,
.ImageIndex = ProfileFilter.ImageIndex.Process,