摘要:
public delegate void DownloadProgressChangedEventHandle(string information, long currentprogress, long totalprogress, string filename); public delegate void DownloadFileCompletedEventHandle(string information, bool success, string filename); public delegate void UploadProgressChangedEventH... 阅读全文
摘要:
1、首先我们要实现如下图的效果: a、主线程A运行方法段1时创建子线程B b、然后子线程B执行方法段2 c、执行完后通知主线程A执行方法段32、实现代码如下: public Form1() { InitializeComponent(); } public void Method1() { //给主线程取个名字 if (Thread.CurrentThread.Name == n... 阅读全文