Example #1
0
        void CreateLib()
        {
            LibItem curLI = root;
            LibItem newLI = new LibItem("ValveIslands", null, root);

            curLI.Children.Add(newLI);
            curLI = newLI;
            ValveIsland island = new ValveIsland("", "CPX");

            island.Components.Add(new Component());
            island.Components.Add(new Component());
            island.Components.Add(new Component());
            island.Components.Add(new Component());
            island.Components.Add(new Component());
            island.Components.Add(new Component());
            island.Components.Add(new Component());
            island.Components.Add(new Component());
            newLI = new LibItem("Festo CPX", island, curLI);
            curLI.Children.Add(newLI);
            this.root
        }
Example #2
0
 public ItemLib()
 {
     // Create an empty root node
     root = new LibItem("DeviceLib", null, null);
     CreateLib();
 }