} //GetCurrentHWnd() /// <summary> /// Change log Event for Tasks /// </summary> private static void TasksLog_LogChanged(Logs.LogChangeEventArgs e) { if (e.Action == DataRowAction.Add) { JoinLoggingThread(); if (currentApplicationsLog.Count > 0) { UpdateCurrentApplicationsLog(); currentApplicationsLog = new ArrayList(); } //if-else InvokeLoggingThread(); //UpdateActiveProcess(); } //if } //TasksLog_LogChanged
private static void TasksLog_LogChanged(Logs.LogChangeEventArgs e) { if (e.Log.Id == Logs.CurrentLog.Id) { if (currentTask == null || e.Log.TaskId != currentTask.Id) { foreach (Task task in tasks) { if (task.Id == e.Log.TaskId) { currentTask = task; break; } } } } }