Ejemplo n.º 1
0
        public void HandleAutomationEvent(UIA.IUIAutomationElement sender, int eventId)
        {
            var senderElement = new Element(Automation, sender);
            var @event        = EventId.Find(AutomationType.UIA3, eventId);

            _callAction(senderElement, @event);
        }
Ejemplo n.º 2
0
        public void HandleAutomationEvent(UIA.IUIAutomationElement sender, int eventId)
        {
            var frameworkElement = new UIA3FrameworkAutomationElement((UIA3Automation)Automation, sender);
            var senderElement    = new SHAutomationElement(frameworkElement);
            var @event           = EventId.Find(AutomationType.UIA3, eventId);

            HandleAutomationEvent(senderElement, @event);
        }
Ejemplo n.º 3
0
        public void HandleAutomationEvent(UIA.IUIAutomationElement sender, int eventId)
        {
            var basicAutomationElement = new UIA3BasicAutomationElement((UIA3Automation)Automation, sender);
            var senderElement          = new AutomationElement(basicAutomationElement);
            var @event = EventId.Find(AutomationType.UIA3, eventId);

            HandleAutomationEvent(senderElement, @event);
        }
Ejemplo n.º 4
0
        private void HandleAutomationEvent(object sender, UIA.AutomationEventArgs automationEventArgs)
        {
            var basicAutomationElement = new TestBasicAutomationElement((TestAutomation)Automation, (UIA.AutomationElement)sender);
            var senderElement          = new AutomationElement(basicAutomationElement);
            var @event = EventId.Find(AutomationType.UIA2, automationEventArgs.EventId.Id);

            HandleAutomationEvent(senderElement, @event);
        }
Ejemplo n.º 5
0
        private void HandleAutomationEvent(object sender, UIA.AutomationEventArgs automationEventArgs)
        {
            var frameworkElement = new UIA2FrameworkAutomationElement((UIA2Automation)Automation, (UIA.AutomationElement)sender);
            var senderElement    = new AutomationElement(frameworkElement);
            var @event           = EventId.Find(AutomationType.UIA2, automationEventArgs.EventId.Id);

            HandleAutomationEvent(senderElement, @event);
        }
Ejemplo n.º 6
0
        public void HandleAutomationEvent(Interop.UIAutomationClient.IUIAutomationElement sender, int eventId)
        {
            var basicAutomationElement = new UIA3BasicAutomationElement((UIA3Automation)this.Automation, sender);
            var senderElement          = new AutomationElement(basicAutomationElement);
            var @event = EventId.Find(eventId);

            this.HandleAutomationEvent(senderElement, @event);
        }