Beispiel #1
0
        protected GenericNodeView AddButton(string name, string icon, GenericNodeView.Callback callback, string id, Node parentNode)
        {
            if (parentNode == null)
            {
                parentNode = _rootNode;
            }

            GenericNodeView node = new GenericNodeView();

            node.id       = id;
            node.name     = name;
            node.icon     = icon;
            node.callback = callback;
            parentNode.AddNode(node);
            return(node);
        }
Beispiel #2
0
 protected GenericNodeView AddButton(string name, string icon, GenericNodeView.Callback callback, Node parentNode)
 {
     return(AddButton(name, icon, callback, string.Empty, parentNode));
 }
Beispiel #3
0
 protected GenericNodeView AddButton(string name, GenericNodeView.Callback callback)
 {
     return(AddButton(name, string.Empty, callback, string.Empty, _rootNode));
 }