private IEnumerable <CompiledInstruction> compilePageCollection( NodePageCollection pageCollection, SignalTable signalTable) { if (pageCollection == null) { throw new ArgumentNullException("pageCollection"); } if (signalTable == null) { throw new ArgumentNullException("signalTable"); } var result = new List <CompiledInstruction>(); foreach (var subFolder in pageCollection.NodePageCollectionChildren) { result.AddRange(compilePageCollection(subFolder, signalTable)); } foreach (var page in pageCollection.NodePageChildren) { result.AddRange(compilePage(page, signalTable)); } return(result); }
public PageCollectionItem(ISolutionItem parent, NodePageCollection pageCollection) : base(parent, pageCollection.PageCollectionName.ToString()) { ContextMenu = extensionService.Sort(contextMenu); PageCollection = pageCollection; SetIconFromBitmap(Resources.Images.PageCollection); }
public void AddPageCollection() { if (runtimeService.DisconnectDialog(this)) { PageCollection = PageCollection.NodePageCollectionChildren.Append( NodePageCollection.BuildWith(new FieldPageCollectionName( Resources.Strings.Solution_Pad_PageCollectionItem_NewPageCollectionName))); } }
private void ScanPageCollection(NodeRuntimeApplication rta, NodePageCollection pageCollection) { foreach (var childPageCollection in pageCollection.NodePageCollectionChildren) { ScanPageCollection(rta, childPageCollection); } foreach (var childPage in pageCollection.NodePageChildren) { ScanPage(rta, childPage); } }