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); }
private void OnEventRaised(WindowEventArgs e) { if (EventRaised != null) EventRaised(this, e); }
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); }