예제 #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
        }
예제 #2
0
 public ItemLib()
 {
     // Create an empty root node
     root = new LibItem("DeviceLib", null, null);
     CreateLib();
 }