//comparison conversion between AutomationElement and ElementEntry objects. public bool ElementIsEntry(AutomationElement element, ElementEntry entry) { if (element.Current.Name == entry.Name && element.Current.AutomationId == entry.AutomationId && element.Current.ControlType == entry.mControlType ) return true; return false; }
//comparison conversion between AutomationElement and ElementEntry objects. public bool ElementIsEntry(AutomationElement element, ElementEntry entry) { if (element.Current.Name == entry.Name && element.Current.AutomationId == entry.AutomationId && element.Current.ControlType == entry.mControlType ) { return(true); } return(false); }
private static int PrioritizeElementEntries(ElementEntry left, ElementEntry right) { if (left == null) { return(right == null ? 0 : -1); } else if (right == null) { return(1); } else { if (left.Priority == right.Priority) { return(0); } return(left.Priority > right.Priority ? 1 : -1); } Debug.Assert(false); return(0); }
private static int PrioritizeElementEntries(ElementEntry left, ElementEntry right) { if (left == null) { return right == null ? 0 : -1; } else if (right == null) { return 1; } else { if (left.Priority == right.Priority) return 0; return left.Priority > right.Priority ? 1 : -1; } Debug.Assert(false); return 0; }