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