private DirectoryViewModel(NormalizedPath path) : base(path) { _icon = new Lazy <ImageSource>(() => FileSystemImages.GetIcon(path, true)); Info = new DirectoryInfo(path); _children = new Lazy <ObservableCollection <FileSystemItemViewModel> >( () => new ObservableCollection <FileSystemItemViewModel>(GetVisibleChildren(Info))); }
public FileViewModel(NormalizedPath path) : base(path) { _icon = new Lazy <ImageSource>(() => FileSystemImages.GetIcon(path, false)); Info = new FileInfo(path); }