示例#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();
 }