/// <summary> /// /// </summary> public SpecialCommandsGroup(ViewerStateModel vsm, Point location, Size size, int tabIndex) { this.SuspendLayout(); this.FlatStyle = FlatStyle.System; this.Location = location; this.Size = size; this.TabIndex = tabIndex; this.Name = "SpecialCommandsGroup"; this.TabStop = false; this.Text = Strings.CustomCommands; this.Enabled = true; // Add the controls this.Controls.Add(new DeviceInfoLabel(new Point(16, 17), new Size(100, 24), 7)); deviceDropDown = new DeviceDropDown(vsm, new Point(118, 16), new Size(308, 21), 8); this.Controls.Add(deviceDropDown); this.Controls.Add(new CloneInfoLabel(new Point(30, 41), new Size(148, 24), 9)); cloneTextBox = new CloneTextBox(vsm, new Point(180, 40), new Size(246, 21), 10); this.Controls.Add(cloneTextBox); this.Controls.Add(new ExtendedInfoLabel(new Point(30, 65), new Size(138, 24), 11)); extendedTextBox = new ExtendedTextBox(vsm, new Point(180, 64), new Size(246, 21), 12); this.Controls.Add(extendedTextBox); this.ResumeLayout(); }
/// <summary> /// /// </summary> public SpecialCommandsGroup( ViewerStateModel vsm, Point location, Size size, int tabIndex ) { this.SuspendLayout(); this.FlatStyle = FlatStyle.System; this.Location = location; this.Size = size; this.TabIndex = tabIndex; this.Name = "SpecialCommandsGroup"; this.TabStop = false; this.Text = Strings.CustomCommands; this.Enabled = true; // Add the controls this.Controls.Add( new DeviceInfoLabel( new Point( 16, 17 ), new Size( 100, 24 ), 7 ) ); deviceDropDown = new DeviceDropDown( vsm, new Point( 118, 16 ), new Size( 308, 21 ), 8 ); this.Controls.Add( deviceDropDown ); this.Controls.Add( new CloneInfoLabel( new Point( 30, 41 ), new Size( 148, 24 ), 9 ) ); cloneTextBox = new CloneTextBox( vsm, new Point( 180, 40 ), new Size( 246, 21 ), 10 ); this.Controls.Add( cloneTextBox ); this.Controls.Add( new ExtendedInfoLabel( new Point( 30, 65 ), new Size( 138, 24 ), 11 ) ); extendedTextBox = new ExtendedTextBox( vsm, new Point( 180, 64 ), new Size( 246, 21 ), 12 ); this.Controls.Add( extendedTextBox ); this.ResumeLayout(); }