public Controller(Game game, iSubject game_observer) { this.game_model = game; //form_view.count[0]=new int(); //form_view.count[1] = new int(); form_view = new Form1(this, game); game_observer.registerObserver(form_view); Application.EnableVisualStyles(); //Application.SetCompatibleTextRenderingDefault(false); Application.Run(form_view); }
public CurrentCondition(iSubject iSub) { weatherData = iSub; weatherData.registerObserver(this); }
public PeogressBar(iSubject iSub) { weatherData = iSub; weatherData.registerObserver(this); }