public DropDownButton(BindingFormattingWindowsFormsEditorService owner) { this.owner = owner; base.TabStop = false; }
public BindingFormattingWindowFormsEditorAccessibleObject(BindingFormattingWindowsFormsEditorService owner) : base(owner) { this.owner = owner; }
private void InitializeComponent() { ComponentResourceManager manager = new ComponentResourceManager(typeof(BindingFormattingDialog)); this.explanationLabel = new Label(); this.mainTableLayoutPanel = new TableLayoutPanel(); this.propertiesTreeView = new TreeView(); this.propertyLabel = new Label(); this.dataSourcePicker = new BindingFormattingWindowsFormsEditorService(); this.bindingLabel = new Label(); this.updateModeLabel = new Label(); this.bindingUpdateDropDown = new ComboBox(); this.formatControl1 = new FormatControl(); this.okCancelTableLayoutPanel = new TableLayoutPanel(); this.okButton = new Button(); this.cancelButton = new Button(); this.mainTableLayoutPanel.SuspendLayout(); this.okCancelTableLayoutPanel.SuspendLayout(); base.ShowIcon = false; base.SuspendLayout(); manager.ApplyResources(this.explanationLabel, "explanationLabel"); this.mainTableLayoutPanel.SetColumnSpan(this.explanationLabel, 3); this.explanationLabel.Name = "explanationLabel"; manager.ApplyResources(this.mainTableLayoutPanel, "mainTableLayoutPanel"); this.mainTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f)); this.mainTableLayoutPanel.ColumnStyles.Add(new ColumnStyle()); this.mainTableLayoutPanel.ColumnStyles.Add(new ColumnStyle()); this.mainTableLayoutPanel.Controls.Add(this.okCancelTableLayoutPanel, 2, 4); this.mainTableLayoutPanel.Controls.Add(this.formatControl1, 1, 3); this.mainTableLayoutPanel.Controls.Add(this.bindingUpdateDropDown, 2, 2); this.mainTableLayoutPanel.Controls.Add(this.propertiesTreeView, 0, 2); this.mainTableLayoutPanel.Controls.Add(this.updateModeLabel, 2, 1); this.mainTableLayoutPanel.Controls.Add(this.dataSourcePicker, 1, 2); this.mainTableLayoutPanel.Controls.Add(this.explanationLabel, 0, 0); this.mainTableLayoutPanel.Controls.Add(this.bindingLabel, 1, 1); this.mainTableLayoutPanel.Controls.Add(this.propertyLabel, 0, 1); this.mainTableLayoutPanel.MinimumSize = new Size(0x21e, 0x11b); this.mainTableLayoutPanel.Name = "mainTableLayoutPanel"; this.mainTableLayoutPanel.RowStyles.Add(new RowStyle()); this.mainTableLayoutPanel.RowStyles.Add(new RowStyle()); this.mainTableLayoutPanel.RowStyles.Add(new RowStyle()); this.mainTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100f)); this.mainTableLayoutPanel.RowStyles.Add(new RowStyle()); manager.ApplyResources(this.propertiesTreeView, "propertiesTreeView"); this.propertiesTreeView.Name = "propertiesTreeView"; this.propertiesTreeView.HideSelection = false; this.propertiesTreeView.TreeViewNodeSorter = new TreeNodeComparer(); this.mainTableLayoutPanel.SetRowSpan(this.propertiesTreeView, 2); this.propertiesTreeView.BeforeSelect += new TreeViewCancelEventHandler(this.propertiesTreeView_BeforeSelect); this.propertiesTreeView.AfterSelect += new TreeViewEventHandler(this.propertiesTreeView_AfterSelect); manager.ApplyResources(this.propertyLabel, "propertyLabel"); this.propertyLabel.Name = "propertyLabel"; manager.ApplyResources(this.dataSourcePicker, "dataSourcePicker"); this.dataSourcePicker.Name = "dataSourcePicker"; this.dataSourcePicker.PropertyValueChanged += new EventHandler(this.dataSourcePicker_PropertyValueChanged); manager.ApplyResources(this.bindingLabel, "bindingLabel"); this.bindingLabel.Name = "bindingLabel"; manager.ApplyResources(this.updateModeLabel, "updateModeLabel"); this.updateModeLabel.Name = "updateModeLabel"; this.bindingUpdateDropDown.FormattingEnabled = true; manager.ApplyResources(this.bindingUpdateDropDown, "bindingUpdateDropDown"); this.bindingUpdateDropDown.DropDownStyle = ComboBoxStyle.DropDownList; this.bindingUpdateDropDown.Name = "bindingUpdateDropDown"; this.bindingUpdateDropDown.Items.AddRange(new object[] { DataSourceUpdateMode.Never, DataSourceUpdateMode.OnPropertyChanged, DataSourceUpdateMode.OnValidation }); this.bindingUpdateDropDown.SelectedIndexChanged += new EventHandler(this.bindingUpdateDropDown_SelectedIndexChanged); this.mainTableLayoutPanel.SetColumnSpan(this.formatControl1, 2); manager.ApplyResources(this.formatControl1, "formatControl1"); this.formatControl1.MinimumSize = new Size(390, 0xed); this.formatControl1.Name = "formatControl1"; this.formatControl1.NullValueTextBoxEnabled = true; manager.ApplyResources(this.okCancelTableLayoutPanel, "okCancelTableLayoutPanel"); this.okCancelTableLayoutPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); this.okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); this.okCancelTableLayoutPanel.Controls.Add(this.cancelButton, 1, 0); this.okCancelTableLayoutPanel.Controls.Add(this.okButton, 0, 0); this.okCancelTableLayoutPanel.Name = "okCancelTableLayoutPanel"; this.okCancelTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 29f)); manager.ApplyResources(this.okButton, "okButton"); this.okButton.Name = "okButton"; this.okButton.DialogResult = DialogResult.OK; this.okButton.Click += new EventHandler(this.okButton_Click); manager.ApplyResources(this.cancelButton, "cancelButton"); this.cancelButton.Name = "cancelButton"; this.cancelButton.DialogResult = DialogResult.Cancel; this.cancelButton.Click += new EventHandler(this.cancelButton_Click); manager.ApplyResources(this, "$this"); base.AutoScaleMode = AutoScaleMode.Font; base.StartPosition = FormStartPosition.CenterParent; base.CancelButton = this.cancelButton; base.AcceptButton = this.okButton; base.Controls.Add(this.mainTableLayoutPanel); base.FormBorderStyle = FormBorderStyle.Sizable; base.Name = "BindingFormattingDialog"; this.mainTableLayoutPanel.ResumeLayout(false); this.mainTableLayoutPanel.PerformLayout(); this.okCancelTableLayoutPanel.ResumeLayout(false); base.HelpButton = true; base.ShowInTaskbar = false; base.MinimizeBox = false; base.MaximizeBox = false; base.Load += new EventHandler(this.BindingFormattingDialog_Load); base.Closing += new CancelEventHandler(this.BindingFormattingDialog_Closing); base.HelpButtonClicked += new CancelEventHandler(this.BindingFormattingDialog_HelpButtonClicked); base.HelpRequested += new HelpEventHandler(this.BindingFormattingDialog_HelpRequested); base.ResumeLayout(false); base.PerformLayout(); }