摘要:
BackgroundWorker connectWork = new BackgroundWorker(); public FormClient(){ connectWork.DoWork += new DoWorkEventHandler(connectWork_DoWork); connectWork.RunWorkerCompleted += new RunWorkerCompletedEventHandler(connectWork_RunWorkerCompleted);} /// <summary> /// 异步方式与服务器进行连接 ... 阅读全文
摘要:
执行顺序不一样 private static int newTask(int mms) { //C } private delegate int NewTaskDelegate(int mms); static void Main(string[] args) { //A NewTaskDelegate newTst = newTask; IAsyncResult asyncResult = newT... 阅读全文
摘要:
NetworkStream networkStream = client.GetStream(); BinaryReader br = new BinaryReader(networkStream); BinaryWriter bw = new BinaryWriter(networkStream); 阅读全文
摘要:
PerformClick生成按钮的Click事件。 阅读全文