public FileOperation(FileOperationProgressSink callbackSink, IWin32Window owner)
        {
            _callbackSink = callbackSink;
            _fileOperation = (IFileOperation)Activator.CreateInstance(_fileOperationType);

            _fileOperation.SetOperationFlags(FileOperationFlags.FOF_NOCONFIRMMKDIR);
            if (_callbackSink != null) _sinkCookie = _fileOperation.Advise(_callbackSink);
            if (owner != null) _fileOperation.SetOwnerWindow((uint)owner.Handle);
        }
Beispiel #2
0
 public FileOperation(FileOperationProgressSink callbackSink, IWin32Window owner)
 {
     _callbackSink  = callbackSink;
     _fileOperation = (IFileOperation)Activator.CreateInstance(_fileOperationType);
     //_fileOperation.SetProgressDialog(null);
     _fileOperation.SetOperationFlags(FileOperationFlags.FOF_NOCONFIRMMKDIR);
     if (_callbackSink != null)
     {
         _sinkCookie = _fileOperation.Advise(_callbackSink);
     }
     if (owner != null)
     {
         _fileOperation.SetOwnerWindow((uint)owner.Handle);
     }
 }
 public FileOperation(FileOperationProgressSink callbackSink) : this(callbackSink, null) { }
Beispiel #4
0
 public FileOperation(FileOperationProgressSink callbackSink) : this(callbackSink, null)
 {
 }