public FolderViewModel(string fullPath, string rootPath, FileSystemItemViewModel parent, AssetsViewModel assets) : base(fullPath, rootPath, parent, assets) { OpenCommand = new ActionCommand(Select); ExportPackageCommand = new ActionCommand(ExportPackage); Preview = assets.PreviewFactory.CreateFolderPreview(ResourcePath, fullPath); }
public FileSystemItemViewModel(string fullPath, string rootPath, FileSystemItemViewModel parent, AssetsViewModel assets) { FullPath = fullPath; _rootPath = rootPath; _parent = parent; _assets = assets; Name = FullPath == rootPath ? Path.GetFileName(Path.GetDirectoryName(fullPath)) : Path.GetFileName(FullPath); }
public FileViewModel(string fullPath, string rootPath, FileSystemItemViewModel parent, AssetsViewModel assets) : base(fullPath, rootPath, parent, assets) { _info = new Lazy <FileInfo>(() => new FileInfo(fullPath)); EditCommand = new ActionCommand(Edit); }