static void Main() { MyNumberGenerator generator = new MyNumberGenerator(100); generator.Attach(new TextView()); generator.Attach(new CounterView()); generator.Attach(new BarView()); generator.Attach(new SumView()); generator.Start(); }
static void Main() { MyNumberGenerator generator = new MyNumberGenerator(); generator.Start(); }