void _udpPortScan_RobotResponseEvent(object sender, RobotFinderLibrary.ProgressEventArgs args) { #region 记录这个IP if (string.IsNullOrEmpty(args.ResponseText)) { return; } string[] tt = args.ResponseText.Replace("Robot_", string.Empty).Split(':'); if (tt != null && tt.Length >= 2) { try { RobotConfigItem rci = new RobotConfigItem(); rci.NickName = args.ResponseText; rci.IP = tt[0]; rci.Port = int.Parse(tt[1]); totalRobotList.Add(rci); } catch (Exception ex) { System.Console.WriteLine(ex.ToString()); } } #endregion //刷新列表 UpdateConnectionList(); }
void _udpPortScan_ProgressEvent(object sender, RobotFinderLibrary.ProgressEventArgs args) { }