Example #1
0
        protected override void LoadViewState(object savedState)
        {
            if (savedState != null)
            {
                object[] arrState = savedState as object[];

                this.nodeText = (string)arrState[1];
                this.nodeValue = (string)arrState[2];
                this.linksContainer = (LinksContainer)arrState[3];
                this.textContainer = (TextContainer)arrState[4];
                base.LoadViewState(arrState[0]);
            }
        }
Example #2
0
        public TreeViewLinksNode(string nodeText, string nodeValue, 
            LinksContainer linksContainer,
            TextContainer textContainer)
        {
            this.nodeText = nodeText;
            this.nodeValue = nodeValue;
            this.linksContainer = linksContainer;
            this.textContainer = textContainer;

            this.Text = "";
            this.Value = nodeValue;
            this.SelectAction = TreeNodeSelectAction.Select;
        }
Example #3
0
 private void Awake()
 {
     linksContainer = transform.parent.parent.parent.GetComponent <LinksContainer>();
 }