private void PopulateFolders() { var store = _currentFile.MessageStore; var root = store.RootFolder; var folders = new ObservableCollection<FolderModel>(root.Folders.Select(f => new FolderModel(f))); DataContext = new PstModel { Folders = folders }; }
private void PopulateFolders() { var store = _currentFile.MessageStore; var root = store.RootFolder; var folders = new ObservableCollection <FolderModel>(root.Folders.Select(f => new FolderModel(f))); DataContext = new PstModel { Folders = folders }; }