Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public CurrentCondition(iSubject iSub)
 {
     weatherData = iSub;
     weatherData.registerObserver(this);
 }
Exemplo n.º 3
0
 public PeogressBar(iSubject iSub)
 {
     weatherData = iSub;
     weatherData.registerObserver(this);
 }