Beispiel #1
0
 /// <summary>
 /// 提供递归查询终端树中的终端节点直属父节点组名称
 /// </summary>
 /// <param name="father"></param>
 private void ReLoadTmlsGrpsBelong(TreeItemViewModel father)
 {
     if (father.NodeType != TreeNodeType.IsGrp)
     {
         return;
     }
     foreach (var t in father.ChildTreeItems)
     {
         if (t.NodeType == TreeNodeType.IsGrp)
         {
             ReLoadTmlsGrpsBelong(t);
         }
         else if (t.NodeType == TreeNodeType.IsTml)
         {
             if (dictionaryC.ContainsKey(t.NodeId))
             {
                 ItemTmls[dictionaryC[t.NodeId]].GroupName = father.NodeName;
                 ItemTmls[dictionaryC[t.NodeId]].GroupId   = father.NodeId;
             }
         }
     }
 }
Beispiel #2
0
 public HelpDragAndDrop(TreeItemViewModel tv)
 {
     treeData = tv;
     listData = new List <int>();
 }