Exemplo n.º 1
0
        public DirectoryStructureViewModel()
        {
            //Get logical drivers
            var children = DirectoryStructure.GetLogicalDrives();

            //Create the viewmodels from the data
            Items = new ObservableCollection <DirectoryItemViewModel>(
                children.Select(drive => new DirectoryItemViewModel(drive.FullPath, DirectoryItemType.Drive)));
        }
Exemplo n.º 2
0
        public DirectoryStructureViewModel()
        {
            var children = DirectoryStructure.GetLogicalDrives();

            this.Items = new ObservableCollection <DirectoryItemViewModel>(children.Select(drive => new DirectoryItemViewModel(drive.FullPath, DirectoryItemType.Drive)));
        }