Ejemplo n.º 1
0
        private static void Main(string[] args)
        {
            IBMPCBuilder builder = new IBMPCBuilder(); //创建IBM电脑
            //DellPCBuilder builder = new DellPCBuilder();//创建DELL电脑
            PCDirector director = new PCDirector(builder);

            director.CreatePC();

            Console.ReadLine();
        }
Ejemplo n.º 2
0
        private static void Main(string[] args)
        {
            IBMPCBuilder builder = new IBMPCBuilder();             //创建IBM电脑
            //DellPCBuilder builder = new DellPCBuilder();//创建DELL电脑
            PCDirector director = new PCDirector(builder);

            director.CreatePC();

            Console.ReadLine();
        }