コード例 #1
0
		} //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
コード例 #2
0
ファイル: Tasks.cs プロジェクト: QuickOrBeDead/ptm
 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;
                 }
             }
         }
     }
 }