Billt_chen

 

06 2013 档案

带进度条的文件复制。
摘要:今天项目要新增一个文件复制的功能,File.Copy() 没有好的用户体验度,所以想到使用进度条。 1 const Int32 BUFFER_SIZE = 4096; //每次拷贝4K的文件, 只考虑大于4K的文件 2 private void Read(string openPath, string savePath, ProgressBar myBar) 3 { 4 lock (openPath) 5 { 6 //返回需拷贝文件的流 7 ... 阅读全文

posted @ 2013-06-14 11:09 Billt_chen 阅读(654) 评论(0) 推荐(0)

导航