Exemplo n.º 1
0
        /// <summary>
        /// The entry point. Sets the parameters of the Binge and starts it.
        /// </summary>
        /// <param name="args">unused</param>
        static void Main(string[] args)
        {
            Binge binge =
                new Binge("beer", bottleCount, new Writer(Console.WriteLine));

            binge.OutOfBottles += new MakeRun(SevenEleven);
            binge.Start();
        }
Exemplo n.º 2
0
 /// <summary>
 /// The entry point. Sets the parameters of the Binge and starts it.
 /// </summary>
 /// <param name="args">unused</param>
 static void Main(string[] args)
 {
     Binge binge = 
        new Binge("beer", bottleCount, new Writer(Console.WriteLine));
     binge.OutOfBottles += new MakeRun(SevenEleven);
     binge.Start();
 }