Пример #1
0
        public Size Configure(Panel panel, PluginsFramework.iTopologyContainer container)
        {
            this.container = container;

            panel.Controls.Add(this.panel);
            return new System.Drawing.Size(200, 200);
        }
Пример #2
0
        public TopologyForm(PluginsFramework.iTopologyContainer topologyContainer)
        {
            InitializeComponent();

            this.topologyContainer = topologyContainer;

            this.DoubleBuffered = true;
        }
Пример #3
0
        public SequenceObject(TabPage page, PluginsFramework.iSequence sequence, PluginsFramework.iTopologyContainer container)
        {
            this.page = page;
            this.sequence = sequence;
            this.container = container;
            this.container.Changed += OnTopologyChange;
            this.outputList.TextChanged += OnOutputChange;

            var pageTable = new TableLayoutPanel();
            page.Controls.Add(pageTable);
            pageTable.Dock = DockStyle.Fill;
            pageTable.Margin = new Padding(0);

            pageTable.Controls.Add(new Label()
            {
                Text = "Output #",
                TextAlign = ContentAlignment.MiddleRight,
                //BorderStyle = BorderStyle.FixedSingle,
            }, 0, 0);
            pageTable.Controls.Add(this.outputList, 1, 0);
            pageTable.Controls.Add(new Label()
            {
                Text = "From",
                TextAlign = ContentAlignment.MiddleRight,
                //BorderStyle = BorderStyle.FixedSingle,
                Margin = new Padding(30, 0, 0, 0),
            }, 2, 0);
            pageTable.Controls.Add(this.start, 3, 0);
            pageTable.Controls.Add(new Label()
            {
                Text = "to",
                TextAlign = ContentAlignment.MiddleCenter,
                Width = 30,
                //BorderStyle = BorderStyle.FixedSingle,
            }, 4, 0);
            pageTable.Controls.Add(this.end, 5, 0);

            this.UpdateItems();

            var sequencePanel = new Panel();
            pageTable.Controls.Add(sequencePanel, 0, 1);
            pageTable.SetColumnSpan(sequencePanel, 10);

            sequencePanel.BorderStyle = BorderStyle.FixedSingle;
            sequencePanel.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            sequencePanel.Margin = new Padding(0);

            sequence.Configure(sequencePanel, this.container);
        }