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 DealerView(DealerController _dcontroller) { _dealerController = _dcontroller; InitializeComponent(); }
public PlayerController(DealerController _dController) { _playerView = new PlayerView(this); _playerModel = new PlayerModel(); _dealerController = _dController; }