Пример #1
0
        protected override List <InputSocketControl> CreateInputs()
        {
            var input = new InputSocketControl(this)
            {
                Left = 0, Top = 20
            };
            var result = new List <InputSocketControl>();

            result.Add(input);
            return(result);
        }
Пример #2
0
        public WireControl(Control parent, InputSocketControl input, OutputSocketControl output)
        {
            this.parent = parent;
            this.input  = input;
            this.output = output;

            DetermineSizeAndPosition();

            WireId = Guid.NewGuid();

            InitializeComponent();
        }
        protected override List <InputSocketControl> CreateInputs()
        {
            var input = new InputSocketControl(this);

            input.Left = 1;
            input.Top  = 17;

            var list = new List <InputSocketControl>();

            list.Add(input);
            return(list);
        }
Пример #4
0
        private void AddInputs(List <InputData> inputs)
        {
            foreach (var inputData in inputs)
            {
                var inputSocketControl = new InputSocketControl(this)
                {
                    Designer = Designer
                };
                inputSocketControl.SetData(inputData);
                Inputs.Add(inputSocketControl);
                Controls.Add(inputSocketControl);
            }

            RepositionInputs();
        }