コード例 #1
0
 public BaseDirectoryViewerViewModel(Profile <FI, DI, FSI> profile,
                                     DirectoryModel <FI, DI, FSI> embedDirectoryModel)
     : base(profile, embedDirectoryModel)
 {
     //if (specialStatusbar)
     //    StatusbarViewModel = new DirectoryStatusbarViewModel<FI, DI, FSI>(_profile, EmbeddedDirectoryViewModel);
     Reload(true);
     _subEntries = new CollectionViewSource()
     {
         Source = EmbeddedDirectoryViewModel.SubEntries
     };
     _subEntries.ChangeSortMethod <FI, DI, FSI>(_sortBy, _sortDirection);
     IsDirectoryTreeEnabled = true;
     CurrentViewerMode      = ViewerMode.Directory;
 }