Beispiel #1
0
 public void AddTask(Task task)
 {
     if (listOfTasks == null)
     {
         listOfTasks = new List<Task>();
     }
     listOfTasks.Add(task);
 }
Beispiel #2
0
        public void updateTaskProgress(String content, Task task)
        {
            HtmlNodeCollection tasksNodeCollection = HtmlUtils.GetNodesCollectionByXPathExpression(content, "//div[@class='quest mt20']");

            foreach (HtmlNode taskNode in tasksNodeCollection)
            {
                Task temp = new Task(taskNode.InnerHtml);
                if (task.Name.Equals(temp.Name))
                {
                    task.Progress = temp.Progress;
                    break;
                }
            }
        }