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); }
public void Update(NumberGenerator generator) { Console.WriteLine("DigitObserver: " + generator.GetNumber()); Thread.Sleep(100); }