Catch-All Profiles

This commit is contained in:
Jonathan Jenne 2020-12-18 14:29:14 +01:00
parent 97b8dcb9ae
commit fbc9a06764
3 changed files with 6 additions and 4 deletions

View File

@ -42,6 +42,7 @@ Public Class ClassClipboardWatcher : Inherits NativeWindow : Implements IDisposa
RaiseEvent Changed(Me, oText) RaiseEvent Changed(Me, oText)
End Select End Select
MyBase.WndProc(m) MyBase.WndProc(m)
End Sub End Sub

View File

@ -241,7 +241,7 @@ Public Class frmMain
End Sub End Sub
Sub OpenMatchForm() Sub OpenMatchForm()
Logger.Debug("...now CHECK_PROFILE_MATCH...") Logger.Debug("...now CHECK_PROFILE_MATCH...")
Dim oProfiles = CURRENT_MATCHING_PROFILES Dim oProfiles = CURRENT_PROFILES_WITH_RESULTS
Dim oEnv = GetEnvironment() Dim oEnv = GetEnvironment()
Dim oParams = New ClipboardWatcherParams() With { Dim oParams = New ClipboardWatcherParams() With {
@ -285,8 +285,8 @@ Public Class frmMain
Sub Change_Monitoring_State() Sub Change_Monitoring_State()
If MONITORING_ACTIVE = True Then If MONITORING_ACTIVE = True Then
NotifyIconMain.ShowBalloonTip(30000, "Clipboard Watcher", "Clipboard-Watcher wurde deaktiviert!", ToolTipIcon.Info)
MONITORING_ACTIVE = False MONITORING_ACTIVE = False
NotifyIconMain.ShowBalloonTip(30000, "Clipboard Watcher", "Clipboard-Watcher wurde deaktiviert!", ToolTipIcon.Info)
Else Else
MONITORING_ACTIVE = True MONITORING_ACTIVE = True
NotifyIconMain.ShowBalloonTip(30000, "Clipboard Watcher", "Clipboard-Watcher wurde wieder aktiviert!", ToolTipIcon.Info) NotifyIconMain.ShowBalloonTip(30000, "Clipboard Watcher", "Clipboard-Watcher wurde wieder aktiviert!", ToolTipIcon.Info)

View File

@ -105,13 +105,14 @@ Public Class frmStart
Private Sub WatcherChanged_New(ByVal sender As Object, ByVal e As String) Handles _Watcher2.Changed Private Sub WatcherChanged_New(ByVal sender As Object, ByVal e As String) Handles _Watcher2.Changed
If MONITORING_ACTIVE = False Then If MONITORING_ACTIVE = False Then
Logger.Info("Clipboard Watcher is inactive!") Logger.Info("Clipboard Watcher ist gerade deaktiviert!")
'NotifyIconMain.ShowBalloonTip(20000, "Clipboard Watcher", "Clipboard-watcher is inactive.", ToolTipIcon.Info) NotifyIconMain.ShowBalloonTip(20000, "Clipboard Watcher", "Clipboard-watcher is inactive.", ToolTipIcon.Info)
Exit Sub Exit Sub
End If End If
If DT_USER_PROFILES Is Nothing OrElse DT_USER_PROFILES.Rows.Count = 0 Then If DT_USER_PROFILES Is Nothing OrElse DT_USER_PROFILES.Rows.Count = 0 Then
Logger.Warn("DT_USER_PROFILES is empty!") Logger.Warn("DT_USER_PROFILES is empty!")
NotifyIconMain.ShowBalloonTip(20000, "Clipboard Watcher", "Es wurden noch keine Profile für Sie hinterlegt.", ToolTipIcon.Info)
Exit Sub Exit Sub
End If End If