protected virtual void Dispose(bool disposing)
 {
     if (disposing && this._treeEnumerator != null)
     {
         this._treeEnumerator.Dispose();
     }
     this._treeEnumerator = null;
 }
 void Initialize(AutomationElement root, UICondition treeCondition)
 {
     this._treeEnumerator = new BreadthFirstTreeEnumerator <AutomationElement>(root: root, navigator: new AutomationElementTreeNavigator(treeWalker: new TreeWalker(condition: treeCondition.Condition)), ignoreRoot: true);
 }
 public BreadthFirstDescendantsNavigator(BreadthFirstDescendantsNavigator previous)
     : base(previous: previous)
 {
     Validate.ArgumentNotNull(parameter: previous, parameterName: nameof(previous));
     this._treeEnumerator = new BreadthFirstTreeEnumerator <AutomationElement>(previous: previous._treeEnumerator);
 }