Exemplo n.º 1
0
 internal static void CheckNullElement(AutomationElement element)
 {
     if (element == null)
     {
         Console.WriteLine("Attempting to invoke pattern on null element");
         AutomationWrapper.DumpVS();
         throw new InvalidOperationException();
     }
 }
Exemplo n.º 2
0
 private static void CheckNullElement(ITreeNode element)
 {
     if (element == null)
     {
         Console.WriteLine("Attempting to invoke pattern on null node");
         AutomationWrapper.DumpVS();
         throw new InvalidOperationException();
     }
 }