Beispiel #1
0
 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)));
 }
Beispiel #2
0
 public FileViewModel(NormalizedPath path) : base(path)
 {
     _icon = new Lazy <ImageSource>(() => FileSystemImages.GetIcon(path, false));
     Info  = new FileInfo(path);
 }