Example #1
0
        private void Names_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            Info.LoadGame(Players[1], Players[2]);
            Board.StepPlayer = Info.LoadStepPlayer(Players[1], Players[2]);
            var game = new GameShow();

            Board.GameIsOpen = true;
            Cw.Close();
            game.Show();
        }
Example #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            if (CheckName(namePlayerOne.Text) &&
                CheckName(namePlayerTwo.Text))
            {
                BoardModel.PlayerOne = new Player(namePlayerOne.Text);
                BoardModel.PlayerTwo = new Player(namePlayerTwo.Text);

                Board.GameIsOpen = true;
                Board.StepPlayer = true;
                BoardModel.GetStartBoard();

                var game = new GameShow();
                Close();
                game.Show();
            }
        }