public HierachicalWrapper_Folder(string header, IHierachicalWrapperConfig cfg, DirectoryPath path, bool root, bool perm) { _isRoot = root; _path = path; _header = header; _config = cfg; Permanent = perm; if (_isRoot && cfg.ShowAllNotesNode) { SubFolder.Add(AllNotesViewWrapper = new HierachicalWrapper_AllNotes(this, cfg)); } if (_isRoot && cfg.ShowEmptyPathNode) { SubFolder.Add(EmptyPathViewWrapper = new HierachicalWrapper_UnsortedNotes(this, cfg)); } }
public HierachicalWrapper_AllNotes(HierachicalWrapper_Folder baseWrapper, IHierachicalWrapperConfig cfg) : base("All notes", cfg, DP_ALLNOTES, false, false) { _baseWrapper = baseWrapper; IsSelected = true; }
public HierachicalWrapper_UnsortedNotes(HierachicalWrapper_Folder baseWrapper, IHierachicalWrapperConfig cfg) : base("Unsorted notes", cfg, DP_UNSORTEDNOTES, false, false) { _baseWrapper = baseWrapper; }