Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            // **** Singleton Example ****
            //SampleSingleton();
            //SampleMultiThreadSingleton();

            // **** Factory Method Example ****
            //SampleFactoryMethod();

            // **** Abstract Method Example ****
            //AbstractFactoryExamples.BuyCar("toyota");
            //AbstractFactoryExamples.BuyCar("porsche");

            // **** Prototype Example ****
            //PrototypeExample.AskingUyen();

            // **** Builder Example ****
            //CarBuilderExampler.MakeCar();

            // **** Adapter Example ****
            //AdapterExample.Example1();

            // **** Farcade Example ****
            //FarcadeExample.RestaurantOrder();

            // **** Stategy Example ****
            //StrategyExamples.CookingStrategy();

            // **** State Example ****
            StateExample.PlayerRun();

            Console.ReadKey();
        }
Ejemplo n.º 2
0
 private static void Main()
 {
     StateExample.Demo();
     Scrapbook.MaybeScrapbook();
     Scrapbook.EitherScrapbook();
     Scrapbook.StateScrapbook();
     Scrapbook.ReaderScrapbook();
 }
Ejemplo n.º 3
0
 public static void Main(string[] args)
 {
     AbstractFactoryExample.Introduce();
     BuilderExample.Introduce();
     ChainOfResponsibilityExample.Introduce();
     StateExample.Introduce();
     VisitorExample.Introduce();
 }
Ejemplo n.º 4
0
 public void State()
 {
     StateExample.Test();
 }