예제 #1
0
        /*************************************/
        /**** Override Methods            ****/
        /*************************************/

        public override object Run(List <object> inputs)
        {
            if (m_DynamicInputs)
            {
                List <string> names = InputParams.Select(x => x.Name).ToList();
                return(Engine.Base.Create.CustomObject(names, inputs));
            }
            else
            {
                return(Engine.Base.Create.CustomObject(inputs[0] as List <string>, inputs[1] as List <object>));
            }
        }
예제 #2
0
            private void SyncValues()
            {
                List <string> input;

                lock (InputParams) {
                    input = InputParams.Select(x => x.Value).ToList();
                }

                var style = GetSelectedStyle();

                for (var i = 0; i < style.InputParams.Count; i++)
                {
                    style.InputParams[i].Value = input.ElementAtOrDefault(i);
                }
            }