Esempio n. 1
0
 //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;
 }
Esempio n. 2
0
 //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);
 }
Esempio n. 3
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);
 }
Esempio n. 4
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;
 }