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); }
protected GenericNodeView AddButton(string name, string icon, GenericNodeView.Callback callback, Node parentNode) { return(AddButton(name, icon, callback, string.Empty, parentNode)); }
protected GenericNodeView AddButton(string name, GenericNodeView.Callback callback) { return(AddButton(name, string.Empty, callback, string.Empty, _rootNode)); }