Beispiel #1
0
        public void Update(NumberGenerator generator)
        {
            Console.WriteLine(this.GetType().FullName + ":" + generator.GetNumber());

            try
            {
                System.Threading.Thread.Sleep(100);
            }
            catch
            {
            }
        }
Beispiel #2
0
        public void Update(NumberGenerator generator)
        {
            Console.Write(this.GetType().FullName + ":");
            int count = generator.GetNumber();

            for (int i = 0; i < count; i++)
            {
                Console.Write("*");
            }
            Console.WriteLine();

            try
            {
                System.Threading.Thread.Sleep(100);
            }
            catch { }
        }