Beispiel #1
0
        public InputBase AddInput(InputBase input, UIComponent uiComponent = null)
        {
            int index = InputsSet.Count;

            input.Index       = index;
            input.UIComponent = uiComponent;
            InputsSet.Add(index, input);
            return(input);
        }
Beispiel #2
0
 private void AddInputPinOnKeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyData == Keys.Subtract)
     {
         if (ExtraVariableInputs > 0)
         {
             int index = InputsSet.Count - 1;
             var io    = InputsSet[index];
             InputsSet.Remove(index);
             RenderingEngine.CurrentProject.RemoveConnection(io);
             ExtraVariableInputs--;
         }
     }
 }