Esempio n. 1
0
 private void _wHookEventRaised(object sender, WindowEventArgs e)
 {
     _activeWindow = e.hWnd;
     e.ExePath = string.IsNullOrEmpty(e.ExePath) ? "LockScreen" : e.ExePath;
     if (_windowEvents.ContainsKey(e.ExePath))
         _windowEvents[e.ExePath] += 1;
     else
         _windowEvents.Add(e.ExePath, 1);
 }
Esempio n. 2
0
 private void OnEventRaised(WindowEventArgs e)
 {
     if (EventRaised != null)
         EventRaised(this, e);
 }
Esempio n. 3
0
 private void _wHookEventRaised(object sender, WindowEventArgs e)
 {
     _activeWindow = e.hWnd;
     if (_windowEvents.ContainsKey(e.ExePath))
         _windowEvents[e.ExePath] += 1;
     else
         _windowEvents.Add(e.ExePath, 1);
 }