Esempio n. 1
0
        /// <summary>
        /// add a new input
        /// </summary>
        /// <param name="index">insert the new input at the index</param>
        public void AppendInput(Input input, int index = -1)
        {
            if (!InputList.Contains(input))
            {
                input.SourceBlock = this;
                if (index > 0)
                {
                    InputList.Insert(index, input);
                }
                else
                {
                    InputList.Add(input);
                }

                FireUpdate(1 << (int)UpdateState.Inputs);
            }
        }