public DiagramCollection Clone() { DiagramCollection clone = new DiagramCollection(Style.Parent); foreach (Diagram diagram in this) { clone.Add(diagram.Clone()); } return(clone); }
public DiagramCollection ToDiagramCollection(ChordFinderStyle chordFinderStyle) { DiagramCollection collection = new DiagramCollection(chordFinderStyle.Style); foreach (ChordFinderResult result in _results) { collection.Add(result.ToDiagram(chordFinderStyle)); } return(collection); }
public void Add(DiagramCollection diagramCollection) { if (null == diagramCollection) { throw new ArgumentNullException(nameof(diagramCollection)); } foreach (Diagram d in diagramCollection) { Add(d); } }
public bool TryGet(string path, string name, out DiagramCollection diagramCollection) { if (StringUtils.IsNullOrWhiteSpace(name)) { throw new ArgumentNullException(nameof(name)); } path = PathUtils.Clean(path); foreach (DiagramLibraryNode node in _nodes) { if (node.Name == name && node.Path == path) { diagramCollection = node.DiagramCollection; return(true); } } diagramCollection = null; return(false); }
private DiagramLibraryNode(DiagramStyle parentStyle) { DiagramCollection = new DiagramCollection(parentStyle); }
public bool TryGet(string name, out DiagramCollection diagramCollection) { return(TryGet(PathUtils.PathRoot, name, out diagramCollection)); }