public ScoreController(GameController gameController)
        {
            container = gameController;

            Scoreview = new ScoreView(this);
            model = new ScoreModel();
        }
コード例 #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
              Application.SetCompatibleTextRenderingDefault(false);

              GameController game = new GameController();
              Application.Run(game.GetView());
        }
コード例 #3
0
        public YahtzeeController(GameController c)
        {
            gameController = c;
              model = new YahtzeeModel(this);
              view = new YahtzeeView(this);

              dices = new DiceController[model.AmountOfDice];

              for (int i = 0; i < dices.Length; i++)
              {
            dices[i] = new DiceController();
              }
        }
 public YahtzeeController(GameController gameController)
 {
     container = gameController;
     yahtzeeView = new YahtzeeView(this);
     yahtzeeModel = new YahtzeeModel();
 }
コード例 #5
0
 public YahtzeeController(GameController GameController)
 {
     _gameController = GameController;
     _view = new YahtzeeView(this);
     _model = new YahtzeeModel();
 }
コード例 #6
0
ファイル: GameView.cs プロジェクト: AlexVanderbist/yahtzee
        public GameView(GameController controller)
        {
            _controller = controller;

            InitializeComponent();
        }
        public GameView(GameController c)
        {
            gameController = c;

            InitializeComponent();
        }