public DmxOutPut(Fixture pFixture) { //mFrameWork = pFrameWork; mFixture = pFixture; InitializeComponent(); this.TabText = pFixture.Name; this.Text = pFixture.Name; List <DmxFramework.Channels.Channel> channels = pFixture.Channels; this.tableLayoutPanel1.ColumnCount = 1; this.tableLayoutPanel1.AutoScroll = true; for (int i = 0; i < channels.Count; i++) { Control.DmxOutputCtrl ctrl = new DmxSoft.Control.DmxOutputCtrl(channels[i]); ctrl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); ctrl.MaximumSize = new System.Drawing.Size(49, 0); ctrl.MinimumSize = new System.Drawing.Size(49, 100); ctrl.Name = "dmxOutputCtrl" + i; ctrl.Size = new System.Drawing.Size(49, 100); ctrl.TabIndex = i; tableLayoutPanel1.Controls.Add(ctrl); this.tableLayoutPanel1.ColumnCount++; } }
public DmxOutPut(DmxFramework.Framework pFrameWork) { mFrameWork = pFrameWork; InitializeComponent(); mFixture = null; this.tableLayoutPanel1.ColumnCount = 1; this.tableLayoutPanel1.AutoScroll = true; for (int i = 0; i < 20; i++) { Control.DmxOutputCtrl ctrl = new DmxSoft.Control.DmxOutputCtrl(i + 1); ctrl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); ctrl.MaximumSize = new System.Drawing.Size(49, 0); ctrl.MinimumSize = new System.Drawing.Size(49, 100); ctrl.Name = "dmxOutputCtrl" + i; ctrl.Size = new System.Drawing.Size(49, 100); ctrl.TabIndex = i; tableLayoutPanel1.Controls.Add(ctrl); this.tableLayoutPanel1.ColumnCount++; } }