BulletMLLib.Bullet.FindTaskByLabelAndName C# (CSharp) Method

FindTaskByLabelAndName() public method

given a label and name, find the task that matches
public FindTaskByLabelAndName ( string strLabel, ENodeName eName ) : BulletMLTask
strLabel string String label of the task
eName ENodeName the name of the node the task should be attached to
return BulletMLTask
        public BulletMLTask FindTaskByLabelAndName(string strLabel, ENodeName eName)
        {
            //check if any of teh child tasks have a task with that label
              foreach (BulletMLTask childTask in Tasks)
              {
            BulletMLTask foundTask = childTask.FindTaskByLabelAndName(strLabel, eName);
            if (null != foundTask)
            {
              return foundTask;
            }
              }

              return null;
        }