public SampleTask <T> AddTask <T>(string label, Func <T> action) { var childNode = new SampleTask <T> { NodeLabel = label, NodeAction = action }; Add(childNode); return(childNode); }
public SampleTask <T> AddTask <T>(string name, string label, string description, Func <T> action) { var childNode = new SampleTask <T> { NodeName = name, NodeLabel = label, NodeDescription = description, NodeAction = action }; Add(childNode); return(childNode); }