public virtual ElementCollection GetLinkedNodes() { ElementCollection ec = new ElementCollection(); foreach (ConnectorElement ce in connects) { foreach (BaseLinkElement le in ce.Links) { if (le.Connector1 == ce) { ec.Add(le.Connector2.ParentElement); } else { ec.Add(le.Connector1.ParentElement); } } } return(ec); }
public void AddElements(ElementCollection els) { AddElements(els.GetArray()); }
public ElementSelectionEventArgs(ElementCollection elements) { this.elements = elements; }
BaseElementEnumarator(ElementCollection mapping): base() { tmp = (IEnumerable) mapping; baseEnumarator = tmp.GetEnumerator(); }
public virtual ElementCollection GetLinkedNodes() { ElementCollection ec = new ElementCollection(); foreach(ConnectorElement ce in connects) { foreach(BaseLinkElement le in ce.Links) { if (le.Connector1 == ce) { ec.Add(le.Connector2.ParentElement); } else { ec.Add(le.Connector1.ParentElement); } } } return ec; }
BaseElementEnumarator(ElementCollection mapping) : base() { tmp = (IEnumerable)mapping; baseEnumarator = tmp.GetEnumerator(); }