/// <summary> /// 处理 任务状态变更 事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void onTaskStateChanged(object sender, TaskStateChangedEventArgs e) { if (e_TaskStateChanged != null && !e.Cancel) { e_TaskStateChanged(sender, e); } // 重要:此处处理所有状态变更后任务队列的变更 m_GatherTaskList.AutoList((cGatherTask)sender); }
/// <summary> /// ���� ����״̬��� �¼� /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void onTaskStateChanged(object sender, TaskStateChangedEventArgs e) { if (e_TaskStateChanged != null && !e.Cancel) { e_TaskStateChanged(sender, e); } // ��Ҫ���˴���������״̬�����������еı�� m_GatherTaskList.AutoList((cGatherTask)sender); }
private void tManage_TaskStateChanged(object sender, TaskStateChangedEventArgs e) { try { InvokeMethod(this, "SetTaskShowState", new object[] { e.TaskID, e.NewState }); UpdateStatebarTask(); } catch (System.Exception ex) { InvokeMethod(this, "ExportLog", new object[] { ex.Message }); } }