Esempio n. 1
0
 protected override void Dispose(bool disposing)
 {
     if (fs != null)
     {
         fs.Dispose();
     }
     callbackCancelAsync = null;
     base.Dispose(disposing);
 }
Esempio n. 2
0
            public FileHashStream(string path, ReportProgressCallback callbackCancelAsync, DataGridViewProgressBarCell cell)
            {
                fs = new FileStream(path, FileMode.Open, FileAccess.Read);
                long length = fs.Length;

                fEnoughSize = length > 0x200000L;
                this.callbackCancelAsync = callbackCancelAsync;
                this.cell          = cell;
                this.cell.FileSize = length;
            }
 public FileHashStream(string path, ReportProgressCallback callbackCancelAsync, DataGridViewProgressBarCell cell)
 {
     fs = new FileStream(path, FileMode.Open, FileAccess.Read);
     long length = fs.Length;
     fEnoughSize = length > 0x200000L;
     this.callbackCancelAsync = callbackCancelAsync;
     this.cell = cell;
     this.cell.FileSize = length;
 }
 protected override void Dispose(bool disposing)
 {
     if(fs != null) {
         fs.Dispose();
     }
     callbackCancelAsync = null;
     base.Dispose(disposing);
 }
Esempio n. 5
0
 public void ReportProgress(int percent)
 {
     ReportProgressCallback?.Invoke(percent);
 }