public BooleanCheckBoxPropertyControl(PropertyControlInfo propInfo) : base(propInfo) { base.SuspendLayout(); this.header = new HeadingLabel(); this.header.Name = "header"; this.header.RightMargin = 0; this.header.Text = base.DisplayName; this.checkBox = new PdnCheckBox(); this.checkBox.Name = "checkBox"; this.checkBox.IsCheckedChanged += new EventHandler(this.OnCheckBoxCheckedChanged); this.checkBox.Text = string.IsNullOrEmpty(base.Description) ? base.DisplayName : base.Description; this.footnoteLabel = new PdnLabel(); this.footnoteLabel.Name = "footnoteLabel"; this.footnoteLabel.AutoSize = false; this.footnoteLabel.Text = (string)propInfo.ControlProperties[ControlInfoPropertyNames.Footnote].Value; Control[] controls = new Control[] { this.header, this.checkBox, this.footnoteLabel }; base.Controls.AddRange(controls); base.ResumeLayout(false); }
private void InitializeComponent() { this.separatorLine = new PaintDotNet.Controls.SeparatorLine(); this.visibleCheckBox = new PdnCheckBox(); this.nameBox = new TextBox(); this.nameLabel = new PdnLabel(); this.cancelButton = new PdnPushButton(); this.okButton = new PdnPushButton(); this.generalHeader = new HeadingLabel(); base.SuspendLayout(); this.generalHeader.Location = new Point(6, 8); this.generalHeader.Name = "generalHeader"; this.generalHeader.Margin = new Padding(1, 3, 1, 1); this.generalHeader.Size = new Size(0x10d, 0x11); this.generalHeader.TabIndex = 4; this.generalHeader.TabStop = false; this.nameLabel.Location = new Point(6, 0x1b); this.nameLabel.Name = "nameLabel"; this.nameLabel.Size = new Size(50, 0x10); this.nameLabel.TabIndex = 2; this.nameBox.Location = new Point(0x40, 0x1b); this.nameBox.Name = "nameBox"; this.nameBox.Size = new Size(200, 20); this.nameBox.TabIndex = 2; this.nameBox.Text = ""; this.nameBox.Enter += new EventHandler(this.OnNameBoxEnter); this.visibleCheckBox.Location = new Point(14, 0x2e); this.visibleCheckBox.Name = "visibleCheckBox"; this.visibleCheckBox.Size = new Size(90, 0x10); this.visibleCheckBox.TabIndex = 3; this.visibleCheckBox.IsCheckedChanged += new EventHandler(this.OnVisibleCheckBoxIsCheckedChanged); this.okButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this.okButton.Location = new Point(0x72, 0x48); this.okButton.Name = "okButton"; this.okButton.TabIndex = 0; this.okButton.Click += new EventHandler(this.OnOkButtonClick); this.okButton.AutoSize = true; this.cancelButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this.cancelButton.DialogResult = DialogResult.Cancel; this.cancelButton.Location = new Point(0xc2, 0x48); this.cancelButton.Name = "cancelButton"; this.cancelButton.TabIndex = 1; this.cancelButton.Click += new EventHandler(this.OnCancelButtonClick); this.cancelButton.AutoSize = true; base.AcceptButton = this.okButton; base.AutoScaleDimensions = new SizeF(96f, 96f); base.AutoScaleMode = AutoScaleMode.Dpi; base.CancelButton = this.cancelButton; base.ClientSize = new Size(0x112, 0x60); base.ControlBox = true; base.Controls.Add(this.generalHeader); base.Controls.Add(this.okButton); base.Controls.Add(this.cancelButton); base.Controls.Add(this.nameBox); base.Controls.Add(this.visibleCheckBox); base.Controls.Add(this.nameLabel); base.Controls.Add(this.separatorLine); base.FormBorderStyle = FormBorderStyle.FixedSingle; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "LayerPropertiesDialog"; base.ShowInTaskbar = false; base.StartPosition = FormStartPosition.CenterParent; base.Controls.SetChildIndex(this.nameLabel, 0); base.Controls.SetChildIndex(this.visibleCheckBox, 0); base.Controls.SetChildIndex(this.nameBox, 0); base.Controls.SetChildIndex(this.cancelButton, 0); base.Controls.SetChildIndex(this.okButton, 0); base.Controls.SetChildIndex(this.generalHeader, 0); base.ResumeLayout(false); }