예제 #1
0
        /// <summary>
        /// 속성 중 Attribute Node로 표현해야 한다.
        /// </summary>
        /// <param name="writer"></param>
        public override void GenerateXmlAttributes(System.Xml.XmlWriter writer)
        {
            base.GenerateXmlAttributes(writer);

            if (ViewMode.HasValue)
            {
                writer.WriteAttributeString("ViewMode", ViewMode.Value.GetHashCode().ToString());
            }
            if (EnableLink.HasValue)
            {
                writer.WriteAttributeString("EnableLink", EnableLink.Value.GetHashCode().ToString());
            }

            if (ShowFormBtn.HasValue)
            {
                writer.WriteAttributeString("ShowFormBtn", ShowFormBtn.Value.GetHashCode().ToString());
            }
            if (FormAction.IsNotWhiteSpace())
            {
                writer.WriteAttributeString("FormAction", FormAction);
            }
            if (FormMethod.IsNotWhiteSpace())
            {
                writer.WriteAttributeString("FormMethod", FormMethod);
            }
            if (FormTarget.IsNotWhiteSpace())
            {
                writer.WriteAttributeString("FormTarget", FormTarget);
            }
            if (FormBtnTitle.IsNotWhiteSpace())
            {
                writer.WriteAttributeString("FormBtnTitle", FormBtnTitle);
            }

            if (FormBtnWidth.HasValue)
            {
                writer.WriteAttributeString("FormBtnWidth", FormBtnWidth.Value.ToString());
            }
            if (FormBtnBorderColor.HasValue)
            {
                writer.WriteAttributeString("FormBtnBorderColor", FormBtnBorderColor.Value.ToHexString());
            }
            if (FormBtnBgColor.HasValue)
            {
                writer.WriteAttributeString("FormBtnBgColor", FormBtnBgColor.Value.ToHexString());
            }

            if (BtnPadding.HasValue)
            {
                writer.WriteAttributeString("BtnPadding", BtnPadding.Value.ToString());
            }
        }