/// <summary> /// 处理任务线程初始化完成事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void onTaskThreadInitialized(object sender, TaskInitializedEventArgs e) { if (e_TaskInitialized != null) { e_TaskInitialized(sender, e); } // 保存当前任务采集的状态 //this.SaveTaskList(); //this.SaveTask((cGatherTask)sender); }
/// 任务初始化,由分解任务触发, private void TaskWorkThreadInit(object sender, TaskInitializedEventArgs e) { cGatherTaskSplit dtc = (cGatherTaskSplit)sender; m_TaskData.TaskID = e.TaskID; if (e_TaskThreadInitialized != null) { // 代理触发 任务初始化 事件 m_TaskManage.EventProxy.AddEvent(delegate() { e_TaskThreadInitialized(this, new TaskInitializedEventArgs(m_TaskData.TaskID)); }); } }
/// <summary> /// ���������̳߳�ʼ������¼� /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void onTaskThreadInitialized(object sender, TaskInitializedEventArgs e) { if (e_TaskInitialized != null) { e_TaskInitialized(sender, e); } // ���浱ǰ����ɼ���״̬ //this.SaveTaskList(); //this.SaveTask((cGatherTask)sender); }
private void tManage_TaskInitialized(object sender, TaskInitializedEventArgs e) { //�ݲ����κδ��� try { UpdateStatebarTask(); } catch (System.Exception ex) { InvokeMethod(this, "ExportLog", new object[] { ex.Message }); } }