public System(XElement source, System parent) : this(source.Attribute("Title") != null ? source.Attribute("Title").Value : Resources.DefaultFilename, null) { foreach (var child in source.Elements()) { if (child.Name.LocalName == Resources.SubsystemTagName) { AddComponent(new System(child, this)); } else if (child.Name.LocalName == Resources.SequenceTagName) { AddComponent(new Sequence(child, this)); } } }
public void AddConnector(System start, System end) { AddComponent(new Connector(start, end)); }
public System(String title, System parent) : base(title, parent) { _components = new List<Component>(); }
public Sequence(XElement source, System parent) { }
public Connector(System start, System end) { Start = start; End = end; }