Example #1
0
        public bool CopyOrLinkFile(string file, bool exists, out CopyAction action, out bool applyforall)
        {
            var dialog = new AddItemDialog(file, exists, FileType.File);
            var result = dialog.Run(this) == DialogResult.Ok;

            action      = dialog.Responce;
            applyforall = dialog.ApplyForAll;

            return(result);
        }
Example #2
0
        public bool CopyOrLinkFolder(string folder, bool exists, out CopyAction action, out bool applyforall)
        {
            var afd = new AddItemDialog(folder, exists, FileType.Folder);

            applyforall = false;

            if (afd.Run(this) == DialogResult.Ok)
            {
                action = afd.Responce;
                return(true);
            }

            action = CopyAction.Link;
            return(false);
        }
Example #3
0
        public bool CopyOrLinkFile(string file, bool exists, out CopyAction action, out bool applyforall)
        {
            var afd = new AddItemDialog(this, file, exists, FileType.File);

            if (afd.Run() == (int)ResponseType.Ok)
            {
                action      = afd.responce;
                applyforall = afd.applyforall;
                return(true);
            }

            action      = CopyAction.Link;
            applyforall = false;
            return(false);
        }
Example #4
0
        public bool CopyOrLinkFolder(string folder, bool exists, out CopyAction action, out bool applyforall)
        {
            var afd = new AddItemDialog(this, folder, exists, FileType.Folder);
            applyforall = false;

            if (afd.Run() == (int)ResponseType.Ok)
            {
                action = afd.responce;
                return true;
            }

            action = CopyAction.Link;
            return false;
        }