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