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); }
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); }
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); }
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; }