Пример #1
0
 public RightTreeGroupNode(RightTreeNodeBase mvvmfather, int groupId)
 {
     Visi    = Visibility.Visible;
     _father = mvvmfather;
     IsGroup = true;
     NodeId  = groupId;
     GetNodeInfomation();
     AddChild();
 }
Пример #2
0
 public RightTreeTmlNode(RightTreeNodeBase father, int nodeid)
 {
     Visi    = Visibility.Visible;
     _father = father;
     IsGroup = false;
     NodeId  = nodeid;
     GetNodeInfomation();
     if (_registerRightNode.ContainsKey(NodeId))
     {
         _registerRightNode.Remove(NodeId);
         _registerRightNode.Add(NodeId, this);
     }
     else if (!_registerRightNode.ContainsKey(NodeId))
     {
         _registerRightNode.Add(NodeId, this);
     }
 }