摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO;... 阅读全文
posted @ 2008-12-21 16:44 bestsaler 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 用回调方法检索数据 下面的示例演示了一个从线程中检索数据的回调方法。包含数据和线程方法的类的构造函数也接受代表回调方法的委托; 在线程方法结束前,它调用该回调委托。 */ using System; using System.Threading; //被实例化的类,用于传递参数进行操作 public class ThreadWithState { private string boil... 阅读全文
posted @ 2008-12-21 14:27 bestsaler 阅读(127) 评论(0) 推荐(0) 编辑
摘要: public void Dirs(string path) { DirectoryInfo dis = new DirectoryInfo(path); FileInfo[] files = dis.GetFiles(); foreach (FileInfo fi in files) ... 阅读全文
posted @ 2008-12-21 12:55 bestsaler 阅读(135) 评论(0) 推荐(0) 编辑