Exemple #1
0
        private void HandleSetNetworkMenu(object sender, RoutedEventArgs e)
        {
            NetworkInformationWindow dialog = new NetworkInformationWindow();

            dialog.Owner = playerWindow;
            dialog.ShowDialog();
            messageHandler.connectTo(dialog.getIP(), dialog.getPort());
        }
Exemple #2
0
        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();
        }