예제 #1
0
        protected virtual XmlNode GetSettings()
        {
            XmlNode      pin  = FSettings.CreateElement("PIN");
            XmlAttribute attr = FSettings.CreateAttribute("Name");

            attr.Value = Name;
            pin.Attributes.Append(attr);

            attr       = FSettings.CreateAttribute("Type");
            attr.Value = PinType.ToString();
            pin.Attributes.Append(attr);

            attr       = FSettings.CreateAttribute("SliceCount");
            attr.Value = SliceCount.ToString();
            pin.Attributes.Append(attr);

            attr       = FSettings.CreateAttribute("Height");
            attr.Value = UncollapsedHeight.ToString();
            pin.Attributes.Append(attr);

            attr       = FSettings.CreateAttribute("Parent");
            attr.Value = Parent.Tag.ToString();
            pin.Attributes.Append(attr);

            return(pin);
        }