public ScoreController(GameController gameController)
        {
            container = gameController;

            Scoreview = new ScoreView(this);
            model = new ScoreModel();
        }
示例#2
0
        private void Yahtzee_Load(object sender, EventArgs e)
        {
            for (int i = 0; i < aantalTeerlingen; i++)
            {
                TeerlingController tijdelijkeTeerling = new TeerlingController();
                teerlingen.Add(tijdelijkeTeerling);

                TeerlingView tView = teerlingen[i].GetView();

                int horizontalPosition = i * tView.Width;
                tView.Location = new System.Drawing.Point(horizontalPosition, 0);
                Controls.Add(tView);
            }

            ScoreView sView = scoreController.GetView();

            int scoreHorizontalPosition = aantalTeerlingen * sView.Width;

            sView.Location = new System.Drawing.Point(scoreHorizontalPosition, 0);
            Controls.Add(sView);
        }
示例#3
0
 public ScoreController()
 {
     //maak nieuwe instantie aan van view
       view = new ScoreView(this);
 }
 public ScoreController()
 {
     //maak nieuwe instantie aan van view
     view = new ScoreView(this);
 }