ClipboardWatcher: Catchall profiles
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user