void IUIAutomationStructureChangedEventHandler.HandleStructureChangedEvent(
            IUIAutomationElement sender,
            UIAutomationClient.StructureChangeType changeType,
            int[] runtimeId)
        {
            AutomationElement automationElement = null;

            if (sender != null)
            {
                automationElement = new AutomationElement(autoElement: sender);
            }
            this._handlingDelegate(sender: automationElement, e: new StructureChangedEventArgs(structureChangeType: UiaConvert.Convert(structureChangeType: changeType), runtimeId: runtimeId));
        }
Ejemplo n.º 2
0
 public static StructureChangeType Convert(
     UIAutomationClient.StructureChangeType structureChangeType)
 {
     return((StructureChangeType)structureChangeType);
 }