예제 #1
0
 public void AppendDocItem(DocDto docDto)
 {
     if (DocList == null)
     {
         DocList = new ObservableCollection <DocDto>();
     }
     docDto.Parent = this;
     DocList.Add(docDto);
 }
예제 #2
0
 public void AppendCatItem(DocDto docDto)
 {
     if (_CatList == null)
     {
         _CatList = new ObservableCollection <DocDto>();
     }
     docDto.Parent = this;
     CatList.Add(docDto);
 }
예제 #3
0
        /// <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);
        }