Ejemplo n.º 1
0
        public int GetTask_Count(enTaskTab type, CTask.State state)
        {
            int num = 0;
            ListView <CTask> listView = this.GetListView((int)type);

            if (listView != null)
            {
                for (int i = 0; i < listView.Count; i++)
                {
                    CTask cTask = listView[i];
                    if (cTask != null && cTask.m_taskState == (byte)state)
                    {
                        num++;
                    }
                }
            }
            return(num);
        }
Ejemplo n.º 2
0
        public bool IsAnyTaskInState(RES_TASK_TYPE type, CTask.State state)
        {
            ListView <CTask> listView = this.task_Data.GetListView(type);

            DebugHelper.Assert(listView != null);
            if (listView != null)
            {
                for (int i = 0; i < listView.Count; i++)
                {
                    CTask task = listView[i];
                    if ((task != null) && (task.m_taskState == ((byte)state)))
                    {
                        return(true);
                    }
                }
            }
            return(false);
        }
Ejemplo n.º 3
0
        public int GetTask_Count(RES_TASK_TYPE type, CTask.State state)
        {
            CTask            task     = null;
            int              num      = 0;
            ListView <CTask> listView = this.GetListView(type);

            if (listView != null)
            {
                for (int i = 0; i < listView.Count; i++)
                {
                    task = listView[i];
                    if ((task != null) && (task.m_taskState == ((byte)state)))
                    {
                        num++;
                    }
                }
            }
            return(num);
        }
Ejemplo n.º 4
0
        public bool IsAnyTaskInState(enTaskTab type, CTask.State state)
        {
            ListView <CTask> listView = this.task_Data.GetListView((int)type);

            DebugHelper.Assert(listView != null);
            if (listView == null)
            {
                return(false);
            }
            for (int i = 0; i < listView.get_Count(); i++)
            {
                CTask cTask = listView.get_Item(i);
                if (cTask != null && cTask.m_taskState == (byte)state)
                {
                    return(true);
                }
            }
            return(false);
        }
Ejemplo n.º 5
0
        public CTask GetMaxIndex_TaskID_InState(enTaskTab type, CTask.State state)
        {
            CTask            cTask    = null;
            uint             num      = 0u;
            ListView <CTask> listView = this.GetListView((int)type);

            if (listView != null)
            {
                for (int i = 0; i < listView.Count; i++)
                {
                    CTask cTask2 = listView[i];
                    if (cTask2 != null && cTask2.m_taskState == (byte)state && cTask2.m_resTask.dwMiShuIndex > num)
                    {
                        cTask = cTask2;
                        num   = cTask.m_resTask.dwMiShuIndex;
                    }
                }
            }
            return(cTask);
        }
Ejemplo n.º 6
0
        public CTask GetMaxIndex_TaskID_InState(RES_TASK_TYPE type, CTask.State state)
        {
            CTask            task         = null;
            uint             dwMiShuIndex = 0;
            CTask            task2        = null;
            ListView <CTask> listView     = this.GetListView(type);

            if (listView != null)
            {
                for (int i = 0; i < listView.Count; i++)
                {
                    task2 = listView[i];
                    if (((task2 != null) && (task2.m_taskState == ((byte)state))) && (task2.m_resTask.dwMiShuIndex > dwMiShuIndex))
                    {
                        task         = task2;
                        dwMiShuIndex = task.m_resTask.dwMiShuIndex;
                    }
                }
            }
            return(task);
        }
Ejemplo n.º 7
0
        public int GetTasks_Count(enTaskTab type, CTask.State state)
        {
            ListView <CTask> listView = this.task_Data.GetListView((int)type);

            DebugHelper.Assert(listView != null);
            if (listView == null)
            {
                return(0);
            }
            int num = 0;

            for (int i = 0; i < listView.get_Count(); i++)
            {
                CTask cTask = listView.get_Item(i);
                if (cTask != null && cTask.m_taskState == (byte)state)
                {
                    num++;
                }
            }
            return(num);
        }
Ejemplo n.º 8
0
        public int GetTasks_Count(RES_TASK_TYPE type, CTask.State state)
        {
            ListView <CTask> listView = this.task_Data.GetListView(type);

            DebugHelper.Assert(listView != null);
            if (listView == null)
            {
                return(0);
            }
            int num = 0;

            for (int i = 0; i < listView.Count; i++)
            {
                CTask task = listView[i];
                if ((task != null) && (task.m_taskState == ((byte)state)))
                {
                    num++;
                }
            }
            return(num);
        }
Ejemplo n.º 9
0
 public void SetState(CTask.State state)
 {
     this.m_taskState = (byte)state;
 }
Ejemplo n.º 10
0
 public CTask GetMaxIndex_TaskID_InState(enTaskTab type, CTask.State state)
 {
     return(this.task_Data.GetMaxIndex_TaskID_InState(type, state));
 }
Ejemplo n.º 11
0
 public ListView <CTask> GetTasks(RES_TASK_TYPE type, CTask.State state, bool bSort = false)
 {
     return(null);
 }
Ejemplo n.º 12
0
 public CTask GetMaxIndex_TaskID_InState(RES_TASK_TYPE type, CTask.State state)
 {
     return(this.task_Data.GetMaxIndex_TaskID_InState(type, state));
 }