private static bool UiaGetIsSelected(BaseProdControl control)
        {
            bool retVal = SelectionItemPatternHelper.IsItemSelected(control.UIAElement);

            LogController.ReceiveLogMessage(new LogMessage(retVal.ToString()));
            return(retVal);
        }
        /// <summary>
        /// Gets selection status of the item.
        /// </summary>
        /// <param name="control">The UI Automation element</param>
        /// <param name="text">The text.</param>
        /// <returns></returns>
        private static bool UiaIsItemSelected(BaseProdControl control, string text)
        {
            AutomationElement element = SelectionItemPatternHelper.FindItemByText(control.UIAElement, text);
            bool retVal = SelectionItemPatternHelper.IsItemSelected(element);

            LogController.ReceiveLogMessage(new LogMessage(retVal.ToString()));
            return(retVal);
        }