void server_OnAcceptFailed(Exception Exception) { if (this.InvokeRequired) { dserver_OnAcceptFailed d = new dserver_OnAcceptFailed(server_OnAcceptFailed); object[] args = { Exception }; this.Invoke(d, args); } else { String command = "\nEXCEPTION OnAcceptFailed : " + Exception.Message + "\n"; commandtb.AppendText(command); commandtb.ScrollToCaret(); } }
void server_OnAcceptFailed(Exception Exception) { if (this.InvokeRequired) { dserver_OnAcceptFailed d = new dserver_OnAcceptFailed(server_OnAcceptFailed); object[] args = { Exception }; this.Invoke(d, args); } else { String command = "\n> Accept Failed : " + Exception.Message + "\n"; } }