コード例 #1
0
ファイル: ElementPicker.cs プロジェクト: jdennis925/guiwalker
 //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;
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #4
0
ファイル: ElementPicker.cs プロジェクト: jdennis925/guiwalker
 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;
 }