Beispiel #1
0
        protected СвязанСДокументом(XmlElement el) : base(el)
        {
            shortTextPrefix  = Resources.GetString("shortTextPrefix");
            shortTextPostfix = "";

            htmlPrefix  = Resources.GetString("htmlPrefix");
            htmlPostfix = "";

            textItemPrefix  = "[";
            textItemPostfix = "]";

            int id = KInt.FromXmlString(el.GetAttribute("ID"));

            docID = id;

            osnovaniya       = KBoolean.FromXmlString(el.GetAttribute("Osnovaniya"), true);
            osnovaniyaAll    = KBoolean.FromXmlString(el.GetAttribute("OsnovaniyaAll"), false);
            vytekayuschie    = KBoolean.FromXmlString(el.GetAttribute("Vytekayuschie"), true);
            vytekayuschieAll = KBoolean.FromXmlString(el.GetAttribute("VytekayuschieAll"), false);
        }
Beispiel #2
0
 public virtual void LoadFromXmlElement(XmlElement el)
 {
     enabled = KBoolean.FromXmlString(el.GetAttribute("Enabled"), false);
     @fixed  = KBoolean.FromXmlString(el.GetAttribute("Fixed"), false);
 }
Beispiel #3
0
 public virtual void SaveToXmlElement(XmlElement el)
 {
     el.SetAttribute("Name", Name);
     el.SetAttribute("Enabled", KBoolean.ToXmlString(Enabled));
     el.SetAttribute("Fixed", KBoolean.ToXmlString(Fixed));
 }