public StartResetController(CardDeckController _cdController, PlayerController _pController)
 {
     _cardDeckController = _cdController;
     _startResetView = new StartResetView(this);
     _startResetModel = new StartResetModel();
     _playerController = _pController;
 }
示例#2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //init
            //cards = new CardDeckController();
            dealer = new DealerController();
            player1 = new PlayerController(dealer);
            bet = new PlayerBetController(player1);
            startReset = new StartResetController(player1, bet, dealer);

            //add
            Controls.Add(player1.getView());
            Controls.Add(bet.getView());
            Controls.Add(startReset.getView());
            //Controls.Add(cards.getView());
            Controls.Add(dealer.getView());

            //pos for bet view
            int yPosBet = 0;
            yPosBet = player1.getView().Height;
            bet.getView().Location = new Point(0, yPosBet);

            //pos for start reset view
            int xPosStart = 0;
            xPosStart = player1.getView().Width;
            startReset.getView().Location = new Point(xPosStart + 50, 0);

            //pos for dealer
            int xPosDealer = 0;
            xPosDealer = player1.getView().Width + startReset.getView().Width;
            dealer.getView().Location = new Point(xPosDealer + 80, 0);
        }
 public StartResetController(PlayerController _pController, PlayerBetController _pbController, DealerController _dController)
 {
     _startResetView = new StartResetView(this);
     _startResetModel = new StartResetModel();
     _playerController = _pController;
     _playerBetController = _pbController;
     _dealerController = _dController;
 }
 public PlayerView(PlayerController _controller)
 {
     _playerController = _controller;
     InitializeComponent();
 }