Example #1
0
        public static bool AnyTasks()
        {
            // Check if we have a sub task currently, then check if that sub task is finished or not
            if (currentSubtask != null)
            {
                if (!currentSubtask.IsFinished())
                {
                    return(true);
                }
            }

            // Check if we have a task currently, then check if it has any sub tasks lefts
            if (currentTask != null)
            {
                if (!currentTask.IsFinished())
                {
                    return(true);
                }
            }

            // If tasks is greater than 0
            if (tasks != null && tasks.Count > 0)
            {
                return(true);
            }

            return(false);
        }