public FileOperation(FileOperationProgressSink callbackSink, IntPtr ownerHandle) { _callbackSink = callbackSink; _fileOperation = (IFileOperation) Activator.CreateInstance(_fileOperationType); _fileOperation.SetOperationFlags(FileOperationFlags.FOF_NOCONFIRMMKDIR); if (_callbackSink != null) _sinkCookie = _fileOperation.Advise(_callbackSink); if (ownerHandle != IntPtr.Zero) _fileOperation.SetOwnerWindow((uint) ownerHandle); }
public FileOperation(FileOperationProgressSink callbackSink, IntPtr ownerHandle) { _callbackSink = callbackSink; _fileOperation = (IFileOperation)Activator.CreateInstance(FileOperationType); _fileOperation.SetOperationFlags(FileOperationFlags.FOF_NOCONFIRMMKDIR); if (_callbackSink != null) { _sinkCookie = _fileOperation.Advise(_callbackSink); } if (ownerHandle != IntPtr.Zero) { _fileOperation.SetOwnerWindow((uint)ownerHandle); } }
public FileOperation(FileOperationProgressSink callbackSink) : this(callbackSink, IntPtr.Zero) { }