Esempio n. 1
0
        private UserEvent UserEvent(AutomationPropertyChangedEventArgs e)
        {
            UserEvent userEvent;

            try
            {
                userEvent = createUserEvent.Invoke(new object[] { e });
            }
            catch (Exception exception)
            {
                userEvent = new ExceptionEvent(uiItem, exception);
            }
            return(userEvent);
        }
Esempio n. 2
0
        public virtual void PropertyChange(object sender, AutomationPropertyChangedEventArgs e)
        {
            UserEvent userEvent = UserEvent(e);

            if (null == userEvent)
            {
                return;
            }
            try
            {
                eventListener.EventOccured(userEvent);
            }
            catch (Exception exception)
            {
                logger.Error("", exception);
            }
        }