Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public bool CopyOrLinkFile(string file, bool exists, out IncludeType action, out bool applyforall)
        {
            var dialog = new AddItemDialog(file, exists, FileType.File);
            var result = dialog.ShowModal(this);

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

            return(result);
        }
Exemplo n.º 3
0
        public bool CopyOrLinkFolder(string folder, bool exists, out IncludeType action, out bool applyforall)
        {
            var afd = new AddItemDialog(folder, exists, FileType.Folder);
            applyforall = false;

            if (afd.Show(this))
            {
                action = afd.Responce;
                return true;
            }

            action = IncludeType.Link;
            return false;
        }
Exemplo n.º 4
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);
        }
Exemplo n.º 5
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);
        }
Exemplo n.º 6
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;
        }