void TsWinLoggerProcessStopped(object sender, WindowTracker.ProcessEventArgs args) { //TODO Another logic is needed //TsTask task = _taskList.Find(t => t.AssignedApplications.Find(a => a.PID == args.PID) != null); //if (task != null) // task.ActualTimeToSpend += DateTime.Now - task.AssignedApplications.Find(a => a.PID == args.PID).StartTime; }
public void InvokeProcessStopped(WindowTracker.ProcessEventArgs args) { WindowTracker.ProcessStoppedHandler handler = ProcessStopped; if (handler != null) { handler(this, args); } }
void WinTrackerProcessStopped(object sender, WindowTracker.ProcessEventArgs args) { InvokeProcessStopped(args); }