public DeleteWork(int id, FileSystemInfoEx[] items) : base(id, items.Length > 0 ? items[0].Parent : null, null) { _deleteItems = items; WorkType = WorkType.Delete; }
public CopyWork(int id, FileSystemInfoEx[] src, DirectoryInfoEx dest) : base(id, src.Length > 0 ? src[0].Parent : null, dest) { _copyFrom = src; _dest = dest; WorkType = WorkType.Copy; }
//public override object GetData(String format) //{ // Object obj = base.GetData(format); // if (format == System.Windows.Forms.DataFormats.FileDrop && // !InDragLoop() && !_isExtracted) // { // string s; // foreach (FileSystemInfoEx entity in _entityList) // s = entity.FullName; // //if (entity.Parent is IVirtualDirectoryInfoExA) // //{ // // if (entity is IVirtualFileSystemInfoExA) // // { // // string outPath = (entity as IVirtualFileSystemInfoExA).TempPath; // // outPath = entity.FullName; // // } // //} // _isExtracted = true; // } // return obj; //} public DataObjectEx(FileSystemInfoEx[] entityList) { _entityList = entityList; }