Exemplo n.º 1
0
        private static ICollection <ILink> GetProjectsRealization()
        {
            ICollection <ILink> nodes = new Collection <ILink>();
            AssemblyNode        n1    = new AssemblyNode();
            ILink link = new Link(n1);

            nodes.Add(link);
            return(nodes);
        }
        public IInformation Make(string info, string name, int vers = 0)
        {
            switch (info)
            {
            case "AssemblyNode":
                return(AssemblyNode.CreateNode(name, vers));

            case "DetailNode":
                return(DetailNode.CreateNode(name, vers));

            case "MaterialNode":
                return(MaterialNode.CreateNode(name, vers));

            default:
                return(null);
            }
        }