Пример #1
0
 private void HandleNameMenuItem(object sender, RoutedEventArgs e)
 {
     NameInformationWindow dialog = new NameInformationWindow();
     dialog.Owner = mainWindow;
     dialog.ShowDialog();
     playerName = dialog.GetName();
     mainWindow.GameStatus.Text = "Status: Ready player 1";
 }
Пример #2
0
 private void HandleNameMenuItem(object sender, RoutedEventArgs e)
 {
     NameInformationWindow dialog = new NameInformationWindow();
     setNameInformationDialogOwner(dialog);
     dialog.ShowDialog();
     getPlayerNames(dialog);
     changeState();
     updateNameMenu(); 
     updateGameState();                       
 }