Ejemplo n.º 1
0
 public DeleteWork(int id, FileSystemInfoEx[] items)
     : base(id,
     items.Length > 0 ? items[0].Parent : null, null)
 {
     _deleteItems = items;
     WorkType = WorkType.Delete;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 //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;
 }