public void CreateSocket(string systemName) { var ipItem = IPConfigure.FindIpList(systemName); client = new UdpClient(new IPEndPoint(ipItem.ATPIP, ipItem.ATPPort)); client.Connect(ipItem.IP, ipItem.Port); }
/// <summary> /// 设置IP按钮点击 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void IPClick(object sender, RoutedEventArgs e) { IPConfigure ipchange = new IPConfigure(); ipchange.ShowDialog(); }
public void Initialize() { IPConfigure LoadIPConfig = new IPConfigure(); socket_later.SocketInitialize(); }