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

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