Пример #1
0
        public void Textbox(Textbox tb, string t, Row row)
        {
            if (tb.DataElementOutput != DataElementOutputEnum.Output ||
                tb.DataElementName == null)
            {
                return;
            }

            if (rowstart != null)                       // In case no items in row are visible
            {                                           //   we delay until we get one.
//				WriteElement(rowstart);
                rowstart = null;
            }
            t = XmlUtil.XmlAnsi(t);
            if (tb.DataElementStyle == DataElementStyleEnum.AttributeNormal)
            {                   // write out as attribute
                WriteAttribute(" {0}='{1}'",
                               tb.DataElementName, XmlUtil.EscapeXmlAttribute(t));
            }
            else
            {                   // write out as element
                WriteElement("<{0}>{1}</{0}>", tb.DataElementName, t);
            }
        }