Exemplo n.º 1
0
        internal void ShowPropertiesForNode(TreeNode treeNode)
        {
            WebElementDefinition element = (treeNode.Tag as WebElementDefinition);

            WebElementDefinition readOnlyElement = element.Clone();
            TypeDescriptor.AddAttributes(readOnlyElement, new Attribute[] { new ReadOnlyAttribute(true) });
            element = readOnlyElement;

        }
Exemplo n.º 2
0
        internal void UpdateElementPropertiesForm(WebElementDefinition sourceElement)
        {
            var element = sourceElement.Clone();

            txtPropHtmlTag.Text = element.HtmlTag;

            StringBuilder htmlProperties = new StringBuilder();

            foreach (KeyValuePair <string, string> item in element.AllHtmlTagProperties)
            {
                htmlProperties.AppendFormat("{0}=\"{1}\";", item.Key, item.Value);
            }

            txtAllElementHtmlProps.Text = htmlProperties.ToString();
            txtAllElementHtmlProps.Tag  = element.AllHtmlTagProperties;

            txtPropArg1.Text = element.Arg1 ?? "";
            txtPropArg2.Text = element.Arg2 ?? "";
            txtPropArg3.Text = element.Arg3 ?? "";
        }
Exemplo n.º 3
0
        internal void UpdateElementPropertiesForm(WebElementDefinition sourceElement)
        {
            var element = sourceElement.Clone();

            txtPropHtmlTag.Text = element.HtmlTag;

            StringBuilder htmlProperties = new StringBuilder();
            foreach (KeyValuePair<string, string> item in element.AllHtmlTagProperties)
            {
                htmlProperties.AppendFormat("{0}=\"{1}\";", item.Key, item.Value);
            }

            txtAllElementHtmlProps.Text = htmlProperties.ToString();
            txtAllElementHtmlProps.Tag = element.AllHtmlTagProperties;

            txtPropArg1.Text = element.Arg1 ?? "";
            txtPropArg2.Text = element.Arg2 ?? "";
            txtPropArg3.Text = element.Arg3 ?? "";
        }