Exemplo n.º 1
0
        public FileOperation()
        {
            this.FileOperations = new List <FileOperationItem>();

            this.fileOperation = new Native.Types.FileOperation();
            this.cookie        = this.fileOperation.Advise(new FileOperationProgressSink(this));
        }
Exemplo n.º 2
0
        public FileOperation(IntPtr ownerWindowHandle)
        {
            this.OwnerWindowHandle = ownerWindowHandle;
            this.FileOperations    = new List <FileOperationItem>();

            this.fileOperation = new Native.Types.FileOperation();
            this.fileOperation.SetOwnerWindow(ownerWindowHandle);
            this.cookie = this.fileOperation.Advise(new FileOperationProgressSink(this));
        }
Exemplo n.º 3
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         this.fileOperation.Unadvise(this.cookie);
         Marshal.ReleaseComObject(this.fileOperation);
         this.fileOperation = null;
     }
 }