private void HandleSetNetworkMenu(object sender, RoutedEventArgs e) { NetworkInformationWindow dialog = new NetworkInformationWindow(); dialog.Owner = playerWindow; dialog.ShowDialog(); messageHandler.connectTo(dialog.getIP(), dialog.getPort()); }
private void HandleMulticastMenu(object sender, RoutedEventArgs e) { NetworkInformationWindow dialog = new NetworkInformationWindow(); dialog.Owner = playerWindow; dialog.portSlider.Value = 50001; dialog.ShowDialog(); multicastAddress = dialog.getIP(); multicastPort = dialog.getPort(); multicastThread = new Thread(ListenBroadcasts); multicastThread.IsBackground = true; multicastThread.Start(); }