Пример #1
0
        protected override void OnInsertComplete(int index, object value)
        {
            WebTreeNode node = ArgumentUtility.CheckNotNullAndType <WebTreeNode> ("value", value);

            base.OnInsertComplete(index, value);
            node.SetParent(_treeView, _parentNode);
        }
Пример #2
0
        protected override void OnSetComplete(int index, object oldValue, object newValue)
        {
            WebTreeNode node = ArgumentUtility.CheckNotNullAndType <WebTreeNode> ("newValue", newValue);

            base.OnSetComplete(index, oldValue, newValue);
            node.SetParent(_treeView, _parentNode);
        }
Пример #3
0
 protected internal void SetParent(WebTreeView treeView, WebTreeNode parentNode)
 {
     _treeView   = treeView;
     _parentNode = parentNode;
     for (int i = 0; i < InnerList.Count; i++)
     {
         WebTreeNode node = (WebTreeNode)InnerList[i];
         node.SetParent(_treeView, parentNode);
     }
 }