BulletMLLib.Bullet.FindTaskByLabel C# (CSharp) Method

FindTaskByLabel() public method

Finds the task by label. This recurses into child tasks to find the taks with the correct label Used only for unit testing!
public FindTaskByLabel ( string strLabel ) : BulletMLTask
strLabel string String label.
return BulletMLTask
        public BulletMLTask FindTaskByLabel(string strLabel)
        {
            //check if any of teh child tasks have a task with that label
              foreach (BulletMLTask childTask in Tasks)
              {
            BulletMLTask foundTask = childTask.FindTaskByLabel(strLabel);
            if (null != foundTask)
            {
              return foundTask;
            }
              }

              return null;
        }