コード例 #1
0
ファイル: App.xaml.cs プロジェクト: bdr27/c-
        private void HandlerSetNetwork(object sender, RoutedEventArgs e)
        {
            var dialog = new IPAddressModal();
            dialog.Owner = clientMiniCheckers;
            dialog.ShowDialog();
            sendAddress = dialog.GetNetworkDetails();

            Debug.WriteLine("Sending to: " + sendAddress);
        }
コード例 #2
0
ファイル: App.xaml.cs プロジェクト: bdr27/c-
        private void HandleMenuSetMulticast(object sender, RoutedEventArgs e)
        {
            var dialog = new IPAddressModal();
            dialog.Owner = clientMiniCheckers;
            dialog.SetMultiCast();
            dialog.ShowDialog();
            multicastAddress = dialog.GetNetworkDetails();

            Debug.WriteLine("Set multicast to: " + multicastAddress);
        }
コード例 #3
0
ファイル: App.xaml.cs プロジェクト: bdr27/c-
 private void HandleMenuSetNetwork(object sender, RoutedEventArgs e)
 {
     var dialog = new IPAddressModal();
     dialog.Owner = serverMiniCheckers;
     dialog.SetStaticIP();
     dialog.ShowDialog();
     networkDetails = dialog.GetNetworkDetails();
     CheckStartServer();
     updateRequestResponse("Setting network details to: " + networkDetails.ToString());
     Debug.WriteLine(networkDetails.ToString());
     Debug.WriteLine("Setup Network");
 }
コード例 #4
0
ファイル: App.xaml.cs プロジェクト: bdr27/c-
 private void HandlerMenuMulticastSetup(object sender, RoutedEventArgs e)
 {
     var dialog = new IPAddressModal();
     dialog.Owner = serverMiniCheckers;
     dialog.SetMultiCast();
     dialog.ShowDialog();
     multiCastDetails = dialog.GetNetworkDetails();
     CheckStartServer();
     updateRequestResponse("Setting multicast details to: " + multiCastDetails.ToString());
     Debug.WriteLine(multiCastDetails.ToString());
     Debug.WriteLine("Setup Multicast");
 }
コード例 #5
0
ファイル: App.xaml.cs プロジェクト: bdr27/c-
 private void GetNetworkInfo()
 {
     IPAddressModal ipAddress = new IPAddressModal();
     ipAddress.SetStaticIP();
     networkDetails = ipAddress.GetNetworkDetails();
 }
コード例 #6
0
ファイル: App.xaml.cs プロジェクト: bdr27/c-
        private void HandlerSetNetwork(object sender, RoutedEventArgs e)
        {
            var dialog = new IPAddressModal();
            dialog.Owner = clientMiniCheckers;
            dialog.ShowDialog();
            sendAddress = dialog.GetNetworkDetails();
            udpHandler.ConnectTo(sendAddress.GetIPAddress(), sendAddress.GetPortNumber());
            SetUserLogin();

            Debug.WriteLine("Sending to: " + sendAddress);
        }
コード例 #7
0
ファイル: App.xaml.cs プロジェクト: bdr27/c-
        private void HandleMenuSetMulticast(object sender, RoutedEventArgs e)
        {
            var dialog = new IPAddressModal();
            dialog.Owner = clientMiniCheckers;
            dialog.SetMultiCast();
            dialog.ShowDialog();
            multicastAddress = dialog.GetNetworkDetails();
            multicastHandler.ConnectTo(multicastAddress.GetIPAddress(), multicastAddress.GetPortNumber());
            SetUserLogin();

            Debug.WriteLine("Set multicast to: " + multicastAddress);
        }