Beispiel #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);
        }
Beispiel #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);
        }
        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);
        }
        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);
        }
Beispiel #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);
        }
Beispiel #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);
        }