Пример #1
0
        internal static bool TestControlWithAllSearchCriteria(
            IEnumerable <Hashtable> hashtables,
            IUiElement element)
        {
            bool result = false;

            if (null == hashtables || 0 == hashtables.Count())
            {
                return(result);
            }

            foreach (Hashtable hashtable in hashtables)
            {
                result =
                    element.TestControlByPropertiesFromDictionary(
                        hashtable.ConvertHashtableToDictionary());

                if (result)
                {
                    if (Preferences.HighlightCheckedControl)
                    {
                        UiaHelper.HighlightCheckedControl(element);
                    }

                    return(result);
                }
            }

            return(result);
        }