Пример #1
0
        private void Join_Click(object sender, RoutedEventArgs e)
        {
            string gameName = (string)comboBox.SelectedItem;

            vm.JoinGame(gameName);
            MultiPlayerWindowGame multiPlayerGame = new MultiPlayerWindowGame(vm);

            multiPlayerGame.Show();
        }
Пример #2
0
        private void startGame_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxResult wait = MessageBox.Show("Please wait for other player");

            vm.StartGame();
            MultiPlayerWindowGame multiPlayerGame = new MultiPlayerWindowGame(vm);

            multiPlayerGame.Show();
        }