Esempio n. 1
0
        public void AddRootElementAutomationPropertyChangedEventHandler(
            TreeScope scope, int handlerId, int [] properties)
        {
            var handlerData = new AutomationPropertyChangedHandlerData(
                null, scope, handlerId, true, properties);

            lock (propertyEventHandlers)
                propertyEventHandlers.Add(handlerData);
        }
Esempio n. 2
0
        public void AddAutomationPropertyChangedEventHandler
            (int [] elementRuntimeId, TreeScope scope, int handlerId, int [] properties)
        {
            var provider = AutomationBridge.Instance.FindProviderByRuntimeId(elementRuntimeId);

            if (provider == null)
            {
                return;
            }
            AutomationPropertyChangedHandlerData handlerData =
                new AutomationPropertyChangedHandlerData(provider, scope,
                                                         handlerId, false, properties);

            lock (propertyEventHandlers)
                propertyEventHandlers.Add(handlerData);
        }