public void setDataList(string[] args) { if (serverList.InvokeRequired) { setDataListCallback d = new setDataListCallback(setDataList); Invoke(d, new object[] { args }); } else { var pingedIP = serverList.Items.Find(args[0], true); if (pingedIP.Length > 0 && pingedIP.Length < 2) { pingedIP[0].SubItems[2].Text = args[1]; } } }
public void setDataList(string[] args) { if (serverList.InvokeRequired) { setDataListCallback d = new setDataListCallback(setDataList); Invoke(d, new object[] {args}); } else { var pingedIP = serverList.Items.Find(args[0], true); if (pingedIP.Length > 0 && pingedIP.Length < 2) { pingedIP[0].SubItems[2].Text = args[1]; } } }