private void Join_Click(object sender, RoutedEventArgs e) { string gameName = (string)comboBox.SelectedItem; vm.JoinGame(gameName); MultiPlayerWindowGame multiPlayerGame = new MultiPlayerWindowGame(vm); multiPlayerGame.Show(); }
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(); }