예제 #1
0
        protected CheckboxNodeView AddCheckbox(string name, bool isOn, CheckboxNodeView.Callback callback, string id, Node parentNode)
        {
            if (parentNode == null)
            {
                parentNode = _rootNode;
            }

            CheckboxNodeView node = new CheckboxNodeView();

            node.name     = name;
            node.isOn     = isOn;
            node.id       = id;
            node.callback = callback;
            parentNode.AddNode(node);
            return(node);
        }
예제 #2
0
 protected CheckboxNodeView AddCheckbox(string name, bool isOn, CheckboxNodeView.Callback callback, Node parentNode)
 {
     return(AddCheckbox(name, isOn, callback, string.Empty, parentNode));
 }