コード例 #1
0
        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);
        }
コード例 #2
0
 public PageCollectionItem(ISolutionItem parent, NodePageCollection pageCollection)
     : base(parent, pageCollection.PageCollectionName.ToString())
 {
     ContextMenu    = extensionService.Sort(contextMenu);
     PageCollection = pageCollection;
     SetIconFromBitmap(Resources.Images.PageCollection);
 }
コード例 #3
0
 public void AddPageCollection()
 {
     if (runtimeService.DisconnectDialog(this))
     {
         PageCollection = PageCollection.NodePageCollectionChildren.Append(
             NodePageCollection.BuildWith(new FieldPageCollectionName(
                                              Resources.Strings.Solution_Pad_PageCollectionItem_NewPageCollectionName)));
     }
 }
コード例 #4
0
 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);
     }
 }