void server_OnDisconnect(ASyncSocket AcceptedSocket) { if (this.InvokeRequired) { dserver_OnDisconnect d = new dserver_OnDisconnect(server_OnDisconnect); object[] args = { AcceptedSocket }; this.Invoke(d, args); } else { String command = "Simulator disconnected"; outPutTxtBx.AppendText(command); outPutTxtBx.ScrollToCaret(); this.closeDebuggerSession(true); // Console.WriteLine(Stream); } }
void server_OnDisconnect(ASyncSocket AcceptedSocket) { if (this.InvokeRequired) { dserver_OnDisconnect d = new dserver_OnDisconnect(server_OnDisconnect); object[] args = {AcceptedSocket }; this.Invoke(d, args); } else { String command = "Simulator disconnected"; outPutTxtBx.AppendText(command); outPutTxtBx.ScrollToCaret(); this.closeDebuggerSession(true); // Console.WriteLine(Stream); } }
void server_OnDisconnect(ASyncSocket AcceptedSocket) { if (this.InvokeRequired) { dserver_OnDisconnect d = new dserver_OnDisconnect(server_OnDisconnect); object[] args = { AcceptedSocket }; this.Invoke(d); } else { String command = "Remote Disconnected"; // Console.WriteLine(Stream); } }