Beispiel #1
0
        public FileOperation(string sourcePath, string targetPath, Api.FileFuncFlags function)
        {
            this.sourcePath          = sourcePath;
            this.targetPath          = targetPath;
            fileop                   = new Api.SHFILEOPSTRUCT();
            fileop.hwnd              = Api.GetForegroundWindow();
            fileop.lpszProgressTitle = "Captain Kirk";
            fileop.fFlags            = Api.FILEOP_FLAGS.FOF_NOCONFIRMATION | Api.FILEOP_FLAGS.FOF_NOCONFIRMMKDIR;

            fileop.wFunc = function;
        }
Beispiel #2
0
 public FileOperation(string path, Api.FileFuncFlags function) : this(path, null, function)
 {
 }