匿名代理用法:
button1.Invoke(new EventHandler(delegate { button1.Text = "开始下载"; button1.Enabled = true; }));
代理用法:
public delegate void ShowLable(string str);
Invoke(new ShowLable(Showsl), new object[] { "name" });
void Showsl(string name)
{
label1.Text = name;
}