Пример #1
0
        /// <summary>
        /// Entry point into console application.
        /// </summary>
        static void Main()
        {
            // Create RefinedAbstraction
            Customers customers = new Customers("Chicago");

            // Set ConcreteImplementor
            customers.Data = new CustomersData();

            // Exercise the bridge
            customers.Show();
            customers.Next();
            customers.Show();
            customers.Next();
            customers.Show();

            customers.Add("Henry Velasquez");
            customers.Add("Mikhail Jacques");

            customers.Next();
            customers.Show();

            customers.Add("Tom Jerry");

            customers.ShowAll();

            // Wait for user
            Console.ReadKey();
        }