public void RemoveList(string id) { if (this.rtb_Server.InvokeRequired) { DelegateStringFun d = new DelegateStringFun(RemoveList); this.Invoke(d, new object[] { id }); } else { lis_sessions.Items.Remove(id); } }
public void Log(string log) { if (this.rtb_Server.InvokeRequired) { DelegateStringFun d = new DelegateStringFun(Log); this.Invoke(d, new object[] { log }); } else { text = text + log.Replace("\0", "") + "\n"; rtb_Server.Text = text; } }