예제 #1
0
파일: App.xaml.cs 프로젝트: bdr27/c-
 private void HandleIPAddressMenuItem(object sender, RoutedEventArgs e)
 {
     NetworkInformationWindow dialog = new NetworkInformationWindow();
     dialog.Owner = mainWindow;
     dialog.ShowDialog();
     networkIPAddress = dialog.GetIPAddress();
     mainWindow.setName.IsEnabled = true;
     mainWindow.GameStatus.Text = "Status: Please enter your name";
 }
예제 #2
0
파일: App.xaml.cs 프로젝트: bdr27/c-
 private void HandleIPAddressMenuItem(object sender, RoutedEventArgs e)
 {
     NetworkInformationWindow dialog = new NetworkInformationWindow();
     dialog.Owner = player1Window;
     dialog.ShowDialog();
     networkIPAddress = dialog.GetIPAddress();
     state = State.WAIT_PLAYER1_NAME;
     player1Window.IPAddressMenuItem.IsEnabled = false;
     updateNameMenu();
     updateGameState();
 }