public void AppendDocItem(DocDto docDto) { if (DocList == null) { DocList = new ObservableCollection <DocDto>(); } docDto.Parent = this; DocList.Add(docDto); }
public void AppendCatItem(DocDto docDto) { if (_CatList == null) { _CatList = new ObservableCollection <DocDto>(); } docDto.Parent = this; CatList.Add(docDto); }
/// <summary> /// 创建链接 /// </summary> /// <returns></returns> public LnkDto CreateLink(DocDto cat) { var lnk = new LnkDto(); lnk.SetType(types); lnk.file_type = file_type; lnk.file_date = file_date; lnk.file_time = file_time; lnk.key = key; lnk.names = names; lnk.pid = cat.id; lnk.path = cat.path; return(lnk); }