Esempio n. 1
0
        public TwoZeroFourEightView()
        {
            InitializeComponent();
            ScoreView Scoreview = new ScoreView();

            Scoreview.Show();
            model = new TwoZeroFourEightModel();
            model.AttachObserver(this);
            model.AttachObserver(Scoreview);
            controller = new TwoZeroFourEightController();
            controller.AddModel(model);
            controller.ActionPerformed(TwoZeroFourEightController.LEFT);
        }
 public TwoZeroFourEightView()
 {
     InitializeComponent();
     ScoreView sc = new ScoreView();
     sc.Visible = true;
     sc.Enabled = true;
     model = new TwoZeroFourEightModel();
     model.AttachObserver(this);
     model.AttachObserver(sc);
     controller = new TwoZeroFourEightController();
     controller.AddModel(model);
     controller.ActionPerformed(TwoZeroFourEightController.LEFT);
 }