internal DesktopTreeXPathNavigator(XPathItem item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }

            this.item = item;
        }
        internal DesktopTreeXPathNavigator(AutomationElement element)
        {
            if (element == null)
            {
                throw new ArgumentNullException("element");
            }

            this.item = ElementItem.Create(element);
        }
Exemple #3
0
 internal abstract bool IsSamePosition(XPathItem item);
Exemple #4
0
 internal override bool IsSamePosition(XPathItem item)
 {
     var obj = item as ElementItem;
     return obj != null && obj._element.Equals(this._element);
 }
 internal override bool IsSamePosition(XPathItem item)
 {
     var obj = item as PropertyItem;
     return obj != null && obj.parent == this.parent && obj.property.Equals(this.property);
 }
        private bool MoveToItem(XPathItem newItem)
        {
            if (newItem == null)
            {
                return false;
            }

            this.item = newItem;
            return true;
        }
        public override bool MoveTo(XPathNavigator other)
        {
            var obj = other as DesktopTreeXPathNavigator;
            if (obj == null)
            {
                return false;
            }

            this.item = obj.item;
            return true;
        }