public SelectCodeTypeDialog(AutomationElement element) : base(element)
        {
            var actElement = Element.FindFirst(
                TreeScope.Descendants,
                new PropertyCondition(
                    AutomationElement.AutomationIdProperty,
                    "1005"));            // AutomationId 1005 discovered with UISpy

            _availableCodeTypes = new CheckListView(actElement);
        }
 public CheckBox(AutomationElement element, CheckListView parent)
     : base(element)
 {
     Name = (string)Element.GetCurrentPropertyValue(AutomationElement.NameProperty);
 }