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();
        }
        private static void Main(string[] args)
        {
            CheapPCBuilder builder = new CheapPCBuilder();             //创建Expensive PC
            //ExpensivePCBuilder builder = new ExpensivePCBuilder();//创建Cheap PC
            PCDirector director = new PCDirector(builder);

            director.CreatePC();

            Console.ReadLine();
        }
        private static void Main(string[] args)
        {
            CheapPCBuilder builder = new CheapPCBuilder(); //创建Expensive PC
            //ExpensivePCBuilder builder = new ExpensivePCBuilder();//创建Cheap PC
            PCDirector director = new PCDirector(builder);

            director.CreatePC();

            Console.ReadLine();
        }
Exemple #4
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();
        }