예제 #1
0
 public override void SyncShortcutsValueList(TreeNodeX node)
 {
     if (node.TreeNodeId == this.TreeNodeId)
     {
         SetValueList(node.GetValueList());
         _dataNode = node;
         ResetNextLevel();
     }
     else
     {
         base.SyncShortcuts(node);
     }
 }
예제 #2
0
 public override void OnValueListLoaded(TreeNodeX node)
 {
     if (this.TreeNodeId == node.TreeNodeId)
     {
         this.SetValueList(node.GetValueList());
         if (this.NextLevelLoaded)
         {
             this.ResetNextLevel();
         }
     }
     else
     {
         base.OnValueListLoaded(node);
     }
 }
 public virtual void SyncShortcutsValueList(TreeNodeX node)
 {
     if (this != node)
     {
         if (this.TreeNodeId == node.TreeNodeId)
         {
             this.SetValueList(node.GetValueList());
         }
         else
         {
             if (NextLevelLoaded)
             {
                 for (int i = 0; i < Nodes.Count; i++)
                 {
                     TreeNodeX tnx = Nodes[i] as TreeNodeX;
                     if (tnx != null)
                     {
                         tnx.SyncShortcutsValueList(node);
                     }
                 }
             }
         }
     }
 }