Пример #1
0
 public override void FromXml(XElement config, Dictionary <ObjectId, ObjectId> map)
 {
     foreach (var ruleConfig in config.Elements(MarkupLineRawRule <RegularLineStyle> .XmlName))
     {
         if (MarkupLineRawRule <RegularLineStyle> .FromXml(ruleConfig, this, map, out MarkupLineRawRule <RegularLineStyle> rule))
         {
             AddRule(rule, false);
         }
     }
 }
Пример #2
0
 public void FromXml(XElement config, Dictionary <ObjectId, ObjectId> map)
 {
     foreach (var ruleConfig in config.Elements(MarkupLineRawRule.XmlName))
     {
         if (MarkupLineRawRule.FromXml(ruleConfig, this, map, out MarkupLineRawRule rule))
         {
             AddRule(rule, false);
         }
     }
 }
Пример #3
0
 public override void FromXml(XElement config, ObjectsMap map, bool invert)
 {
     if (config.Element(MarkupLineRawRule <Style> .XmlName) is XElement ruleConfig && MarkupLineRawRule <Style> .FromXml(ruleConfig, this, map, invert, out MarkupLineRawRule <Style> rule))
     {
         SetRule(rule);
     }
 }
Пример #4
0
 public override void FromXml(XElement config, Dictionary <ObjectId, ObjectId> map)
 {
     if (config.Element(MarkupLineRawRule <Style> .XmlName) is XElement ruleConfig && MarkupLineRawRule <Style> .FromXml(ruleConfig, this, map, out MarkupLineRawRule <Style> rule))
     {
         SetRule(rule);
     }
 }