예제 #1
0
        public SampleTask <T> AddTask <T>(string label, Func <T> action)
        {
            var childNode = new SampleTask <T>
            {
                NodeLabel  = label,
                NodeAction = action
            };

            Add(childNode);

            return(childNode);
        }
예제 #2
0
        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);
        }