private void _foregroundWatcher_ForegroundChanged(object sender, ForegroundArgs e) { string text = $"{e.Process.ProcessName.Truncate(16),20}"; _messages.Enqueue(new Report($"{text} \"{e.Process.MainWindowTitle}\"")); }
private void OnForegroundChange(object o, ForegroundArgs e) { ForegroundChanged?.Invoke(o, e); }