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); }
public virtual void LoadFromXmlElement(XmlElement el) { enabled = KBoolean.FromXmlString(el.GetAttribute("Enabled"), false); @fixed = KBoolean.FromXmlString(el.GetAttribute("Fixed"), false); }
public virtual void SaveToXmlElement(XmlElement el) { el.SetAttribute("Name", Name); el.SetAttribute("Enabled", KBoolean.ToXmlString(Enabled)); el.SetAttribute("Fixed", KBoolean.ToXmlString(Fixed)); }