示例#1
0
        public static void Group(TransformNode nodeA, TransformNode nodeB)
        {
            var groupNode = new TransformNode("Group");

            nodeA.SetParent(groupNode);
            nodeB.SetParent(groupNode);
        }
示例#2
0
文件: Program.cs 项目: sdiguana/DAG
        static void Main(string[] args)
        {
            var a = new TransformNode("a");
            var b = new TransformNode("b");
            var c = new TransformNode("c");
            var d = new TransformNode("d");
            var e = new TransformNode("e");
            var f = new TransformNode("f");
            var g = new TransformNode("g");
            var h = new TransformNode("h");

            b.SetParent(a);
            c.SetParent(b);
            e.SetParent(d);
            f.SetParent(d);
            g.SetParent(d);
            h.SetParent(f);

            CommandManager.ProcessCommand("ls");

            while (!CommandManager.DoneRunning)
            {
                Console.Write(":");
                CommandManager.ProcessCommand(Console.ReadLine());
            }
        }