Beispiel #1
0
        public void Update(NumberGenerator generator)
        {
            Console.WriteLine("GraphObserver:");
            int count = generator.GetNumber();

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

            Thread.Sleep(100);
        }
Beispiel #2
0
        public void Update(NumberGenerator generator)
        {
            Console.WriteLine("DigitObserver: " + generator.GetNumber());

            Thread.Sleep(100);
        }