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"; }
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(); }