Example #1
0
        public GameForm()
        {
            try
            {
                InitializeComponent();

                radioSingle.Checked = true;

                _gameController = new GameController();

                _gameController.InitializeGame();

                this.ctrlPlayers.PlayerNameChanged += new PlayerNameChangedEventHandler(this.ctrlPlayers_NameChanged);

                this.ctrlDisplayBoard.UserPlayEvent += new UserPlayEventHandler(this.BoardCtrl_UserPlayEvent);

                StartNewGame();
            }
            catch (Exception oEx)
            {
                MessageBox.Show("Failed to Initialize!");
            }
        }