public PluginsSettingsPage(PluginsSettingsSection section) : base(section) { this.section = section; this.tableLayoutPanel = new TableLayoutPanel(); this.introText = new PdnLabel(); this.errorsListBox = new ListBox(); this.detailsTextBox = new TextBox(); this.tableLayoutPanel.ColumnCount = 1; this.tableLayoutPanel.RowCount = 3; this.tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f)); this.tableLayoutPanel.Controls.Add(this.introText, 0, 0); this.tableLayoutPanel.Controls.Add(this.errorsListBox, 0, 1); this.tableLayoutPanel.Controls.Add(this.detailsTextBox, 0, 2); this.tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.AutoSize)); this.tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f)); this.tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 66.66666f)); this.introText.AutoSize = true; this.tableLayoutPanel.TabIndex = 0; this.introText.Text = PdnResources.GetString("SettingsDialog.Plugins.IntroText"); this.introText.TabIndex = 1; this.errorsListBox.Dock = DockStyle.Fill; this.errorsListBox.TabIndex = 2; this.errorsListBox.SelectedIndexChanged += new EventHandler(this.OnErrorsListBoxSelectedIndexChanged); this.detailsTextBox.Dock = DockStyle.Fill; this.detailsTextBox.ReadOnly = true; this.detailsTextBox.Multiline = true; this.detailsTextBox.Font = new Font(FontFamily.GenericMonospace, 8f); this.detailsTextBox.TabIndex = 3; base.Controls.Add(this.tableLayoutPanel); }
private void InitializeComponent() { this.closeButton = new PdnPushButton(); this.continueButton = new PdnPushButton(); this.progressBar = new ProgressBar(); this.infoText = new PdnLabel(); this.moreInfoLink = new PdnLinkLabel(); this.versionNameLabel = new PdnLabel(); this.separator = new PaintDotNet.Controls.SeparatorLine(); this.progressLabel = new PdnLabel(); base.SuspendLayout(); this.closeButton.AutoSize = true; this.closeButton.Name = "closeButton"; this.closeButton.TabIndex = 0; this.closeButton.Click += new EventHandler(this.OnCloseButtonClick); this.continueButton.AutoSize = true; this.continueButton.AutoScaleImage = false; this.continueButton.Name = "continueButton"; this.continueButton.TabIndex = 3; this.continueButton.Click += new EventHandler(this.OnContinueButtonClick); this.progressBar.MarqueeAnimationSpeed = 40; this.progressBar.Name = "progressBar"; this.progressBar.TabIndex = 4; this.infoText.Name = "infoText"; this.infoText.TabIndex = 2; this.moreInfoLink.Name = "moreInfoLink"; this.moreInfoLink.TabIndex = 5; this.moreInfoLink.TabStop = true; this.moreInfoLink.Click += new EventHandler(this.OnMoreInfoLinkClick); this.versionNameLabel.Name = "versionNameLabel"; this.versionNameLabel.TabIndex = 6; this.separator.Name = "headerLabel"; this.separator.TabIndex = 0; this.separator.TabStop = false; this.progressLabel.Name = "progressLabel"; this.progressLabel.TabIndex = 8; base.AutoScaleDimensions = new SizeF(96f, 96f); base.AutoScaleMode = AutoScaleMode.Dpi; base.CancelButton = this.closeButton; base.ClientSize = new Size(0x157, 0xac); base.Controls.Add(this.progressLabel); base.Controls.Add(this.separator); base.Controls.Add(this.versionNameLabel); base.Controls.Add(this.moreInfoLink); base.Controls.Add(this.continueButton); base.Controls.Add(this.infoText); base.Controls.Add(this.closeButton); base.Controls.Add(this.progressBar); base.FormBorderStyle = FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "UpdatesDialog"; base.ShowInTaskbar = false; base.StartPosition = FormStartPosition.CenterParent; base.ResumeLayout(false); base.PerformLayout(); }
public VectorSliderPropertyControl(PropertyControlInfo propInfo) : base(propInfo) { this.decimalPlaces = 2; base.SuspendLayout(); this.header = new HeadingLabel(); this.sliderX = new PdnTrackBar(); this.numericUpDownX = new PdnNumericUpDown(); this.resetButtonX = new PdnPushButton(); this.sliderY = new PdnTrackBar(); this.numericUpDownY = new PdnNumericUpDown(); this.resetButtonY = new PdnPushButton(); this.descriptionText = new PdnLabel(); this.header.Name = "header"; this.header.RightMargin = 0; this.header.Text = base.DisplayName; this.sliderX.Name = "sliderX"; this.sliderX.AutoSize = false; this.sliderX.ValueChanged += new EventHandler(this.OnSliderXValueChanged); this.SliderShowTickMarksX = (bool)propInfo.ControlProperties[ControlInfoPropertyNames.SliderShowTickMarksX].Value; this.sliderX.ResetRequested += new EventHandler(this.OnResetButtonXClick); this.numericUpDownX.Name = "numericUpDownX"; this.numericUpDownX.ValueChanged += new EventHandler(this.OnNumericUpDownXValueChanged); this.numericUpDownX.TextAlign = HorizontalAlignment.Right; this.resetButtonX.Name = "resetButtonX"; this.resetButtonX.AutoSize = false; this.resetButtonX.Click += new EventHandler(this.OnResetButtonXClick); this.resetButtonX.Image = PdnResources.GetImageResource("Icons.ResetIcon.png").Reference; this.resetButtonX.Visible = (bool)propInfo.ControlProperties[ControlInfoPropertyNames.ShowResetButton].Value; base.ToolTip.SetToolTip(this.resetButtonX, PdnResources.GetString("Form.ResetButton.Text").Replace("&", "")); this.sliderY.Name = "sliderY"; this.sliderY.AutoSize = false; this.sliderY.ValueChanged += new EventHandler(this.OnSliderYValueChanged); this.SliderShowTickMarksY = (bool)propInfo.ControlProperties[ControlInfoPropertyNames.SliderShowTickMarksY].Value; this.sliderY.ResetRequested += new EventHandler(this.OnResetButtonYClick); this.numericUpDownY.Name = "numericUpDownY"; this.numericUpDownY.ValueChanged += new EventHandler(this.OnNumericUpDownYValueChanged); this.numericUpDownY.TextAlign = HorizontalAlignment.Right; this.resetButtonY.Name = "resetButtonY"; this.resetButtonY.AutoSize = false; this.resetButtonY.Click += new EventHandler(this.OnResetButtonYClick); this.resetButtonY.Image = PdnResources.GetImageResource("Icons.ResetIcon.png").Reference; this.resetButtonY.Visible = (bool)propInfo.ControlProperties[ControlInfoPropertyNames.ShowResetButton].Value; base.ToolTip.SetToolTip(this.resetButtonY, PdnResources.GetString("Form.ResetButton.Text").Replace("&", "")); this.descriptionText.Name = "descriptionText"; this.descriptionText.AutoSize = false; this.descriptionText.Text = base.Description; this.ValidateUIRanges(); this.ResetUIRanges(); Control[] controls = new Control[] { this.header, this.sliderX, this.numericUpDownX, this.resetButtonX, this.sliderY, this.numericUpDownY, this.resetButtonY, this.descriptionText }; base.Controls.AddRange(controls); base.ResumeLayout(false); }
private void InitializeComponent() { this.closeButton = new PdnPushButton(); this.copyrightLabel = new PdnLabel(); this.pdnBanner = new PdnBanner(); this.versionLabel = new PdnLabel(); this.separator = new PaintDotNet.Controls.SeparatorLine(); base.SuspendLayout(); this.closeButton.DialogResult = DialogResult.Cancel; this.closeButton.AutoSize = true; this.closeButton.Name = "okButton"; this.closeButton.TabIndex = 0; this.copyrightLabel.BorderStyle = BorderStyle.None; this.copyrightLabel.Location = new Point(10, 0x5f); this.copyrightLabel.Name = "copyrightLabel"; this.copyrightLabel.Size = new Size(0x1e1, 0x24); this.copyrightLabel.TabIndex = 4; this.pdnBanner.Location = new Point(0, 0); this.pdnBanner.Name = "pdnBanner"; this.pdnBanner.Size = new Size(0x1ef, 0x47); this.pdnBanner.TabIndex = 7; this.versionLabel.BorderStyle = BorderStyle.None; this.versionLabel.Location = new Point(10, 0x4d); this.versionLabel.Name = "versionLabel"; this.versionLabel.Size = new Size(0x1e1, 13); this.versionLabel.TabIndex = 8; this.separator.Name = "separator"; base.AcceptButton = this.closeButton; base.AutoScaleDimensions = new SizeF(96f, 96f); base.AutoScaleMode = AutoScaleMode.Dpi; base.CancelButton = this.closeButton; base.ClientSize = new Size(0x1ef, 0xa8); base.Controls.Add(this.versionLabel); base.Controls.Add(this.copyrightLabel); base.Controls.Add(this.pdnBanner); base.Controls.Add(this.separator); base.Controls.Add(this.closeButton); base.FormBorderStyle = FormBorderStyle.FixedDialog; base.Location = new Point(0, 0); base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "AboutDialog"; base.ShowInTaskbar = false; base.SizeGripStyle = SizeGripStyle.Hide; base.StartPosition = FormStartPosition.CenterParent; base.Controls.SetChildIndex(this.closeButton, 0); base.Controls.SetChildIndex(this.pdnBanner, 0); base.Controls.SetChildIndex(this.copyrightLabel, 0); base.Controls.SetChildIndex(this.versionLabel, 0); base.ResumeLayout(false); base.PerformLayout(); }
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); }
public StringTextBoxPropertyControl(PropertyControlInfo propInfo) : base(propInfo) { base.SuspendLayout(); this.header = new HeadingLabel(); this.textBox = new TextBox(); this.description = new PdnLabel(); this.header.Name = "header"; this.header.Text = base.DisplayName; this.header.RightMargin = 0; this.description.Name = "description"; this.description.Text = base.Description; this.textBox.Name = "textBox"; this.textBox.TextChanged += new EventHandler(this.OnTextBoxTextChanged); this.textBox.MaxLength = base.Property.MaxLength; this.baseTextBoxHeight = this.textBox.Height; this.Multiline = (bool)propInfo.ControlProperties[ControlInfoPropertyNames.Multiline].Value; Control[] controls = new Control[] { this.header, this.textBox, this.description }; base.Controls.AddRange(controls); base.ResumeLayout(false); }
public Int32IncrementButtonPropertyControl(PropertyControlInfo propInfo) : base(propInfo) { base.SuspendLayout(); this.header = new HeadingLabel(); this.header.Name = "header"; this.header.Text = base.DisplayName; this.header.RightMargin = 0; this.incrementButton = new PdnPushButton(); this.incrementButton.Name = "incrementButton"; this.incrementButton.AutoSize = true; this.incrementButton.Text = (string)propInfo.ControlProperties[ControlInfoPropertyNames.ButtonText].Value; this.incrementButton.Click += new EventHandler(this.OnIncrementButtonClick); this.descriptionText = new PdnLabel(); this.descriptionText.Name = "descriptionText"; this.descriptionText.AutoSize = false; this.descriptionText.Text = base.Description; Control[] controls = new Control[] { this.header, this.incrementButton, this.descriptionText }; base.Controls.AddRange(controls); base.ResumeLayout(false); base.PerformLayout(); }
private void Initialize() { using (new WaitCursorChanger(this)) { base.SuspendLayout(); this.introText = new PdnLabel(); this.defaultToolLabel = new PdnLabel(); this.loadFromToolBarButton = new PdnPushButton(); this.resetButton = new PdnPushButton(); this.toolChooserStrip = new ToolChooserStrip(); this.introText.Name = "introText"; this.introText.TabStop = false; this.introText.Text = PdnResources.GetString("SettingsDialog.Tools.IntroText.Text"); this.defaultToolLabel.Name = "defaultToolLabel"; this.defaultToolLabel.AutoSize = true; this.defaultToolLabel.TabStop = false; this.defaultToolLabel.Text = PdnResources.GetString("SettingsDialog.Tools.DefaultToolLabel.Text"); this.resetButton.Name = "resetButton"; this.resetButton.AutoSize = true; this.resetButton.Click += new EventHandler(this.OnResetButtonClick); this.resetButton.TabIndex = 0; this.resetButton.Text = PdnResources.GetString("SettingsDialog.Tools.ResetButton.Text"); this.loadFromToolBarButton.Name = "loadFromToolBarButton"; this.loadFromToolBarButton.AutoSize = true; this.loadFromToolBarButton.Click += new EventHandler(this.OnLoadFromToolBarButtonClick); this.loadFromToolBarButton.TabIndex = 1; this.loadFromToolBarButton.Text = PdnResources.GetString("SettingsDialog.Tools.LoadFromToolBarButton.Text"); this.toolChooserStrip.Name = "toolChooserStrip"; this.toolChooserStrip.Dock = DockStyle.None; this.toolChooserStrip.GripStyle = ToolStripGripStyle.Hidden; this.toolChooserStrip.UseToolNameForLabel = true; this.toolChooserStrip.ToolClicked += new ToolClickedEventHandler(this.OnToolChooserStripToolClicked); base.Controls.Add(this.loadFromToolBarButton); base.Controls.Add(this.resetButton); base.Controls.Add(this.introText); base.Controls.Add(this.defaultToolLabel); base.Controls.Add(this.toolChooserStrip); base.Location = new Point(0, 0); this.toolConfigRows.Add(new ToolConfigRow(this.toolSettings, ToolBarConfigItems.Brush | ToolBarConfigItems.LineCurveShapeType | ToolBarConfigItems.PenDashStyle | ToolBarConfigItems.PenEndCap | ToolBarConfigItems.PenHardness | ToolBarConfigItems.PenStartCap | ToolBarConfigItems.PenWidth | ToolBarConfigItems.Radius | ToolBarConfigItems.ShapeDrawType | ToolBarConfigItems.ShapeType)); this.toolConfigRows.Add(new ToolConfigRow(this.toolSettings, ToolBarConfigItems.None | ToolBarConfigItems.SelectionCombineMode | ToolBarConfigItems.SelectionDrawMode)); this.toolConfigRows.Add(new ToolConfigRow(this.toolSettings, ToolBarConfigItems.None | ToolBarConfigItems.Text)); this.toolConfigRows.Add(new ToolConfigRow(this.toolSettings, ToolBarConfigItems.Gradient)); this.toolConfigRows.Add(new ToolConfigRow(this.toolSettings, ToolBarConfigItems.FloodMode | ToolBarConfigItems.RecolorToolSamplingMode | ToolBarConfigItems.Tolerance)); this.toolConfigRows.Add(new ToolConfigRow(this.toolSettings, ToolBarConfigItems.None | ToolBarConfigItems.PixelSampleMode | ToolBarConfigItems.SampleImageOrLayer)); this.toolConfigRows.Add(new ToolConfigRow(this.toolSettings, ToolBarConfigItems.ColorPickerBehavior)); this.toolConfigRows.Add(new ToolConfigRow(this.toolSettings, ToolBarConfigItems.None | ToolBarConfigItems.Resampling)); this.toolConfigRows.Add(new ToolConfigRow(this.toolSettings, ToolBarConfigItems.Antialiasing | ToolBarConfigItems.BlendMode | ToolBarConfigItems.SelectionRenderingQuality)); OurToolStripRenderer renderer = new OurToolStripRenderer { DrawToolStripExBackgroundTopSeparatorLine = false }; for (int i = 0; i < this.toolConfigRows.Count; i++) { base.Controls.Add(this.toolConfigRows[i].HeaderLabel); base.Controls.Add(this.toolConfigRows[i].ToolConfigStrip); this.toolConfigRows[i].ToolConfigStrip.Renderer = renderer; this.toolConfigRows[i].ToolConfigStrip.Layout += (s, e) => base.PerformLayout(); } this.toolChooserStrip.Renderer = renderer; this.toolChooserStrip.SetTools(DocumentWorkspace.ToolInfos); this.toolChooserStrip.SelectToolByName(this.toolSettings.ActiveToolName.Value); this.toolSettings.ActiveToolName.ValueChangedT += new ValueChangedEventHandler <string>(this.OnToolSettingsActiveToolNameChanged); UIUtil.SuspendControlPainting(this); foreach (Setting setting in this.toolSettings.Settings) { setting.RaiseValueChangedEvent(); } UIUtil.ResumeControlPainting(this); base.ResumeLayout(false); base.PerformLayout(); } }
private void InitializeComponent() { this.documentStrip = new DocumentStrip(); this.documentListHeader = new HeadingLabel(); this.hScrollBar = new HScrollBar(); this.saveButton = new CommandButton(); this.dontSaveButton = new CommandButton(); this.cancelButton = new CommandButton(); this.infoLabel = new PdnLabel(); base.SuspendLayout(); this.saveButton.SuspendLayout(); this.dontSaveButton.SuspendLayout(); this.cancelButton.SuspendLayout(); this.documentStrip.BackColor = SystemColors.ButtonHighlight; this.documentStrip.DocumentClicked += new ValueEventHandler <Tuple <DocumentWorkspace, DocumentClickAction> >(this.OnDocumentListDocumentClicked); this.documentStrip.DrawDirtyOverlay = false; this.documentStrip.EnsureSelectedIsVisible = false; this.documentStrip.ManagedFocus = true; this.documentStrip.Name = "documentList"; this.documentStrip.ScrollOffsetChanged += new EventHandler(this.OnDocumentListScrollOffsetChanged); this.documentStrip.ShowCloseButtons = false; this.documentStrip.ShowScrollButtons = false; this.documentStrip.TabIndex = 0; this.documentListHeader.Name = "documentListHeader"; this.documentListHeader.RightMargin = 0; this.documentListHeader.TabIndex = 1; this.documentListHeader.TabStop = false; this.hScrollBar.Name = "hScrollBar"; this.hScrollBar.TabIndex = 2; this.hScrollBar.ValueChanged += new EventHandler(this.OnHScrollBarValueChanged); this.saveButton.ActionImage = null; this.saveButton.AutoSize = true; this.saveButton.Name = "saveButton3"; this.saveButton.TabIndex = 4; this.saveButton.Click += new EventHandler(this.OnSaveButtonClick); this.dontSaveButton.ActionImage = null; this.dontSaveButton.AutoSize = true; this.dontSaveButton.Name = "dontSaveButton"; this.dontSaveButton.TabIndex = 5; this.dontSaveButton.Click += new EventHandler(this.OnDontSaveButtonClick); this.cancelButton.ActionImage = null; this.cancelButton.AutoSize = true; this.cancelButton.Name = "cancelButton"; this.cancelButton.TabIndex = 6; this.cancelButton.Click += new EventHandler(this.OnCancelButtonClick); this.infoLabel.Name = "infoLabel"; this.infoLabel.TabIndex = 7; base.AutoScaleDimensions = new SizeF(96f, 96f); base.AutoScaleMode = AutoScaleMode.Dpi; base.ClientSize = new Size(450, 100); base.Controls.Add(this.infoLabel); base.Controls.Add(this.documentListHeader); base.Controls.Add(this.cancelButton); base.Controls.Add(this.hScrollBar); base.Controls.Add(this.dontSaveButton); base.Controls.Add(this.documentStrip); base.Controls.Add(this.saveButton); base.AcceptButton = this.saveButton; base.CancelButton = this.cancelButton; base.FormBorderStyle = FormBorderStyle.FixedDialog; base.Location = new Point(0, 0); base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "UnsavedChangesDialog"; base.ShowInTaskbar = false; base.StartPosition = FormStartPosition.CenterParent; base.Controls.SetChildIndex(this.saveButton, 0); base.Controls.SetChildIndex(this.documentStrip, 0); base.Controls.SetChildIndex(this.dontSaveButton, 0); base.Controls.SetChildIndex(this.hScrollBar, 0); base.Controls.SetChildIndex(this.cancelButton, 0); base.Controls.SetChildIndex(this.documentListHeader, 0); base.Controls.SetChildIndex(this.infoLabel, 0); this.LoadResources(); this.saveButton.ResumeLayout(false); this.dontSaveButton.ResumeLayout(false); this.cancelButton.ResumeLayout(false); 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); }
private void InitializeComponent() { this.blendModeLabel = new PdnLabel(); this.blendOpComboBox = new PdnDropDownList(); this.opacityUpDown = new NumericUpDown(); this.opacityTrackBar = new TrackBar(); this.opacityLabel = new PdnLabel(); this.blendingHeader = new HeadingLabel(); this.opacityUpDown.BeginInit(); this.opacityTrackBar.BeginInit(); base.SuspendLayout(); base.nameLabel.Location = new Point(6, 30); base.nameLabel.Name = "nameLabel"; base.nameBox.Name = "nameBox"; base.visibleCheckBox.Location = new Point(8, 0x33); base.visibleCheckBox.Name = "visibleCheckBox"; this.blendingHeader.Location = new Point(6, 0x4b); this.blendingHeader.Name = "blendingHeader"; this.blendingHeader.Margin = new Padding(1, 3, 1, 1); this.blendingHeader.Size = new Size(0x10d, 0x11); this.blendingHeader.TabIndex = 8; this.blendingHeader.TabStop = false; this.blendModeLabel.Location = new Point(6, 0x5f); this.blendModeLabel.Name = "blendModeLabel"; this.blendModeLabel.AutoSize = true; this.blendModeLabel.Size = new Size(50, 0x17); this.blendModeLabel.TabIndex = 4; this.blendOpComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this.blendOpComboBox.Location = new Point(0x40, 0x5b); this.blendOpComboBox.Name = "blendOpComboBox"; this.blendOpComboBox.Size = new Size(0x79, 0x15); this.blendOpComboBox.TabIndex = 4; this.blendOpComboBox.SelectedIndexChanged += new EventHandler(this.OnBlendOpComboBoxSelectedIndexChanged); this.blendOpComboBox.MaxDropDownItems = 100; this.opacityLabel.Location = new Point(6, 0x7c); this.opacityLabel.AutoSize = true; this.opacityLabel.Name = "opacityLabel"; this.opacityLabel.Size = new Size(0x30, 0x10); this.opacityLabel.TabIndex = 0; this.opacityUpDown.Location = new Point(0x40, 0x7a); int[] bits = new int[4]; bits[0] = 0xff; this.opacityUpDown.Maximum = new decimal(bits); this.opacityUpDown.Name = "opacityUpDown"; this.opacityUpDown.Size = new Size(0x38, 20); this.opacityUpDown.TabIndex = 5; this.opacityUpDown.TextAlign = HorizontalAlignment.Right; this.opacityUpDown.Enter += new EventHandler(this.OnOpacityUpDownEnter); this.opacityUpDown.KeyUp += new KeyEventHandler(this.OnOpacityUpDownKeyUp); this.opacityUpDown.ValueChanged += new EventHandler(this.OnOpacityUpDownValueChanged); this.opacityUpDown.Leave += new EventHandler(this.OnOpacityUpDownLeave); this.opacityTrackBar.AutoSize = false; this.opacityTrackBar.LargeChange = 0x20; this.opacityTrackBar.Location = new Point(0x81, 0x7a); this.opacityTrackBar.Maximum = 0xff; this.opacityTrackBar.Name = "opacityTrackBar"; this.opacityTrackBar.Size = new Size(0x92, 0x18); this.opacityTrackBar.TabIndex = 6; this.opacityTrackBar.TickStyle = TickStyle.None; this.opacityTrackBar.ValueChanged += new EventHandler(this.OnOpacityTrackBarValueChanged); base.cancelButton.Location = new Point(0xc1, 0x9e); base.cancelButton.Name = "cancelButton"; base.okButton.Location = new Point(0x70, 0x9e); base.okButton.Name = "okButton"; base.AutoScaleDimensions = new SizeF(96f, 96f); base.AutoScaleMode = AutoScaleMode.Dpi; base.ClientSize = new Size(0x112, 190); base.Controls.Add(this.blendingHeader); base.Controls.Add(this.blendOpComboBox); base.Controls.Add(this.opacityUpDown); base.Controls.Add(this.opacityLabel); base.Controls.Add(this.blendModeLabel); base.Controls.Add(this.opacityTrackBar); base.Location = new Point(0, 0); base.Name = "BitmapLayerPropertiesDialog"; base.Controls.SetChildIndex(this.opacityTrackBar, 0); base.Controls.SetChildIndex(this.blendModeLabel, 0); base.Controls.SetChildIndex(this.opacityLabel, 0); base.Controls.SetChildIndex(this.opacityUpDown, 0); base.Controls.SetChildIndex(base.nameLabel, 0); base.Controls.SetChildIndex(base.visibleCheckBox, 0); base.Controls.SetChildIndex(base.nameBox, 0); base.Controls.SetChildIndex(this.blendingHeader, 0); base.Controls.SetChildIndex(this.blendOpComboBox, 0); base.Controls.SetChildIndex(base.cancelButton, 0); base.Controls.SetChildIndex(base.okButton, 0); this.opacityUpDown.EndInit(); this.opacityTrackBar.EndInit(); base.ResumeLayout(false); }
public ExceptionDialog() { base.SuspendLayout(); this.toolTip = new ToolTip(); base.Icon = PdnInfo.AppIcon; this.errorIconBox = new PictureBox(); this.errorIconBox.SizeMode = PictureBoxSizeMode.StretchImage; this.errorIconBox.Image = this.GetScaledWarningIcon(); this.messageLabel = new PdnLabel(); this.message2Label = new PdnLabel(); this.bottomSeparator = new PaintDotNet.Controls.SeparatorLine(); this.detailsButton = new PdnPushButton(); this.detailsButton.Click += new EventHandler(this.OnDetailsButtonClick); this.detailsButton.AutoSize = true; this.button1 = new PdnPushButton(); this.button1.AutoSize = true; this.button1.DialogResult = DialogResult.OK; this.button1.Visible = false; this.button2 = new PdnPushButton(); this.button2.Text = PdnResources.GetString("Form.OkButton.Text"); this.button2.AutoSize = true; this.button2.DialogResult = DialogResult.Cancel; this.copyToClipboardButton = new PdnPushButton(); this.copyToClipboardButton.Text = PdnResources.GetString("ExceptionDialog.CopyToClipboardButton.Text"); this.copyToClipboardButton.AutoSize = true; this.copyToClipboardButton.Click += new EventHandler(this.OnCopyToClipboardButtonClick); this.folderIconBox = new PictureBox(); this.folderIconBox.SizeMode = PictureBoxSizeMode.StretchImage; this.folderIconBox.Image = PdnResources.GetImageResource("Icons.FolderShortcut.png").Reference; this.folderIconBox.Visible = false; this.openFolderLink = new PdnLinkLabel(); this.openFolderLink.Text = PdnResources.GetString("ExceptionDialog.OpenFolderLink.Text"); this.openFolderLink.LinkClicked += new LinkLabelLinkClickedEventHandler(this.OnOpenFolderLinkLinkClicked); this.openFolderLink.Visible = false; this.openFolderLink.AutoSize = true; this.crashLogTextBox = new TextBox(); this.crashLogTextBox.Multiline = true; this.crashLogTextBox.ReadOnly = true; this.crashLogTextBox.ScrollBars = ScrollBars.Vertical; this.crashLogTextBox.Font = new Font(FontFamily.GenericMonospace, this.crashLogTextBox.Font.Size); this.crashLogTextBox.Visible = false; this.crashLogTextBox.KeyPress += new KeyPressEventHandler(this.OnCrashLogTextBoxKeyPress); this.detailsButton.Text = this.GetDetailsButtonText(); this.detailsButton.TabIndex = 0; this.button1.TabIndex = 1; this.button2.TabIndex = 2; this.copyToClipboardButton.TabIndex = 3; this.openFolderLink.TabIndex = 4; this.crashLogTextBox.TabIndex = 5; base.Controls.Add(this.errorIconBox); base.Controls.Add(this.messageLabel); base.Controls.Add(this.message2Label); base.Controls.Add(this.bottomSeparator); base.Controls.Add(this.detailsButton); base.Controls.Add(this.button2); base.Controls.Add(this.button1); base.Controls.Add(this.copyToClipboardButton); base.Controls.Add(this.folderIconBox); base.Controls.Add(this.openFolderLink); base.Controls.Add(this.crashLogTextBox); this.Text = PdnInfo.BareProductName; this.BackColor = SystemColors.Window; base.FormBorderStyle = FormBorderStyle.Sizable; base.MaximizeBox = false; base.MinimizeBox = false; base.AcceptButton = this.button1; base.CancelButton = this.button2; base.ClientSize = new Size(UIUtil.ScaleWidth(450), base.ClientSize.Height); base.StartPosition = FormStartPosition.CenterScreen; this.DoubleBuffered = true; base.ShowInTaskbar = false; base.ResumeLayout(false); base.PerformLayout(); this.MinimumSize = base.Size; this.button1.Focus(); }