Example #1
0
        static void Main(string[] args)
        {
            Dell2 del2 = new Dell2(Go);
            Dell1 del1 = new Dell1(Start);

            del1(10, del2);

            Console.WriteLine();
            Console.Read();
        }
Example #2
0
 public static void Start(int x, Dell2 d)
 {
     for (int i = 0; i < x; i++)
     {
         d();
         Thread.Sleep(1000);
         Console.Write(i);
         Console.WriteLine();
     }
 }
Example #3
0
 public static void Start(int x, Dell2 d)
 {
     for (int i = 0; i < x; i++)
     {
         d();
         Thread.Sleep(1000);
         Console.Write(i);
         Console.WriteLine();
     }
 }
Example #4
0
        static void Main(string[] args)
        {
            Dell2 del2 = new Dell2(Go);
            Dell1 del1 = new Dell1(Start);

            del1(10, del2);



            Console.WriteLine();
            Console.Read();
        }