private void InitializeComponent()
 {
     ComponentResourceManager manager = new ComponentResourceManager(typeof(ToolStripCollectionEditor.ToolStripItemEditorForm));
     this.btnCancel = new Button();
     this.btnOK = new Button();
     this.tableLayoutPanel = new TableLayoutPanel();
     this.addTableLayoutPanel = new TableLayoutPanel();
     this.btnAddNew = new Button();
     this.newItemTypes = new ImageComboBox();
     this.okCancelTableLayoutPanel = new TableLayoutPanel();
     this.lblItems = new Label();
     this.selectedItemName = new Label();
     this.selectedItemProps = new VsPropertyGrid(base.Context);
     this.lblMembers = new Label();
     this.listBoxItems = new CollectionEditor.FilterListBox();
     this.btnMoveUp = new Button();
     this.btnMoveDown = new Button();
     this.btnRemove = new Button();
     this.tableLayoutPanel.SuspendLayout();
     this.addTableLayoutPanel.SuspendLayout();
     this.okCancelTableLayoutPanel.SuspendLayout();
     base.SuspendLayout();
     manager.ApplyResources(this.btnCancel, "btnCancel");
     this.btnCancel.DialogResult = DialogResult.Cancel;
     this.btnCancel.Margin = new Padding(3, 0, 0, 0);
     this.btnCancel.Name = "btnCancel";
     manager.ApplyResources(this.btnOK, "btnOK");
     this.btnOK.Margin = new Padding(0, 0, 3, 0);
     this.btnOK.Name = "btnOK";
     manager.ApplyResources(this.tableLayoutPanel, "tableLayoutPanel");
     this.tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 274f));
     this.tableLayoutPanel.ColumnStyles.Add(new ColumnStyle());
     this.tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f));
     this.tableLayoutPanel.Controls.Add(this.addTableLayoutPanel, 0, 1);
     this.tableLayoutPanel.Controls.Add(this.okCancelTableLayoutPanel, 0, 6);
     this.tableLayoutPanel.Controls.Add(this.lblItems, 0, 0);
     this.tableLayoutPanel.Controls.Add(this.selectedItemName, 2, 0);
     this.tableLayoutPanel.Controls.Add(this.selectedItemProps, 2, 1);
     this.tableLayoutPanel.Controls.Add(this.lblMembers, 0, 2);
     this.tableLayoutPanel.Controls.Add(this.listBoxItems, 0, 3);
     this.tableLayoutPanel.Controls.Add(this.btnMoveUp, 1, 3);
     this.tableLayoutPanel.Controls.Add(this.btnMoveDown, 1, 4);
     this.tableLayoutPanel.Controls.Add(this.btnRemove, 1, 5);
     this.tableLayoutPanel.Name = "tableLayoutPanel";
     this.tableLayoutPanel.RowStyles.Add(new RowStyle());
     this.tableLayoutPanel.RowStyles.Add(new RowStyle());
     this.tableLayoutPanel.RowStyles.Add(new RowStyle());
     this.tableLayoutPanel.RowStyles.Add(new RowStyle());
     this.tableLayoutPanel.RowStyles.Add(new RowStyle());
     this.tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100f));
     this.tableLayoutPanel.RowStyles.Add(new RowStyle());
     manager.ApplyResources(this.addTableLayoutPanel, "addTableLayoutPanel");
     this.addTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f));
     this.addTableLayoutPanel.ColumnStyles.Add(new ColumnStyle());
     this.addTableLayoutPanel.Controls.Add(this.btnAddNew, 1, 0);
     this.addTableLayoutPanel.Controls.Add(this.newItemTypes, 0, 0);
     this.addTableLayoutPanel.Margin = new Padding(0, 3, 3, 3);
     this.addTableLayoutPanel.Name = "addTableLayoutPanel";
     this.addTableLayoutPanel.RowStyles.Add(new RowStyle());
     manager.ApplyResources(this.btnAddNew, "btnAddNew");
     this.btnAddNew.Margin = new Padding(3, 0, 0, 0);
     this.btnAddNew.Name = "btnAddNew";
     manager.ApplyResources(this.newItemTypes, "newItemTypes");
     this.newItemTypes.DropDownStyle = ComboBoxStyle.DropDownList;
     this.newItemTypes.FormattingEnabled = true;
     this.newItemTypes.Margin = new Padding(0, 0, 3, 0);
     this.newItemTypes.Name = "newItemTypes";
     this.newItemTypes.DrawMode = DrawMode.OwnerDrawVariable;
     manager.ApplyResources(this.okCancelTableLayoutPanel, "okCancelTableLayoutPanel");
     this.tableLayoutPanel.SetColumnSpan(this.okCancelTableLayoutPanel, 3);
     this.okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.okCancelTableLayoutPanel.Controls.Add(this.btnOK, 0, 0);
     this.okCancelTableLayoutPanel.Controls.Add(this.btnCancel, 1, 0);
     this.okCancelTableLayoutPanel.Margin = new Padding(3, 6, 0, 0);
     this.okCancelTableLayoutPanel.Name = "okCancelTableLayoutPanel";
     this.okCancelTableLayoutPanel.RowStyles.Add(new RowStyle());
     manager.ApplyResources(this.lblItems, "lblItems");
     this.lblItems.Margin = new Padding(0, 3, 3, 0);
     this.lblItems.Name = "lblItems";
     manager.ApplyResources(this.selectedItemName, "selectedItemName");
     this.selectedItemName.Margin = new Padding(3, 3, 3, 0);
     this.selectedItemName.Name = "selectedItemName";
     this.selectedItemProps.CommandsVisibleIfAvailable = false;
     manager.ApplyResources(this.selectedItemProps, "selectedItemProps");
     this.selectedItemProps.Margin = new Padding(3, 3, 0, 3);
     this.selectedItemProps.Name = "selectedItemProps";
     this.tableLayoutPanel.SetRowSpan(this.selectedItemProps, 5);
     manager.ApplyResources(this.lblMembers, "lblMembers");
     this.lblMembers.Margin = new Padding(0, 3, 3, 0);
     this.lblMembers.Name = "lblMembers";
     manager.ApplyResources(this.listBoxItems, "listBoxItems");
     this.listBoxItems.DrawMode = DrawMode.OwnerDrawVariable;
     this.listBoxItems.FormattingEnabled = true;
     this.listBoxItems.Margin = new Padding(0, 3, 3, 3);
     this.listBoxItems.Name = "listBoxItems";
     this.tableLayoutPanel.SetRowSpan(this.listBoxItems, 3);
     this.listBoxItems.SelectionMode = SelectionMode.MultiExtended;
     manager.ApplyResources(this.btnMoveUp, "btnMoveUp");
     this.btnMoveUp.Margin = new Padding(3, 3, 0x12, 0);
     this.btnMoveUp.Name = "btnMoveUp";
     manager.ApplyResources(this.btnMoveDown, "btnMoveDown");
     this.btnMoveDown.Margin = new Padding(3, 1, 0x12, 3);
     this.btnMoveDown.Name = "btnMoveDown";
     manager.ApplyResources(this.btnRemove, "btnRemove");
     this.btnRemove.Margin = new Padding(3, 3, 0x12, 3);
     this.btnRemove.Name = "btnRemove";
     base.AutoScaleMode = AutoScaleMode.Font;
     base.AcceptButton = this.btnOK;
     manager.ApplyResources(this, "$this");
     base.CancelButton = this.btnCancel;
     base.Controls.Add(this.tableLayoutPanel);
     base.HelpButton = true;
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "ToolStripCollectionEditor";
     base.Padding = new Padding(9);
     base.ShowIcon = false;
     base.ShowInTaskbar = false;
     base.SizeGripStyle = SizeGripStyle.Show;
     this.tableLayoutPanel.ResumeLayout(false);
     this.tableLayoutPanel.PerformLayout();
     this.addTableLayoutPanel.ResumeLayout(false);
     this.addTableLayoutPanel.PerformLayout();
     this.okCancelTableLayoutPanel.ResumeLayout(false);
     this.okCancelTableLayoutPanel.PerformLayout();
     base.ResumeLayout(false);
     base.HelpButtonClicked += new CancelEventHandler(this.ToolStripCollectionEditor_HelpButtonClicked);
     this.newItemTypes.DropDown += new EventHandler(this.OnnewItemTypes_DropDown);
     this.newItemTypes.HandleCreated += new EventHandler(this.OnComboHandleCreated);
     this.newItemTypes.SelectedIndexChanged += new EventHandler(this.OnnewItemTypes_SelectedIndexChanged);
     this.btnAddNew.Click += new EventHandler(this.OnnewItemTypes_SelectionChangeCommitted);
     this.btnMoveUp.Click += new EventHandler(this.OnbtnMoveUp_Click);
     this.btnMoveDown.Click += new EventHandler(this.OnbtnMoveDown_Click);
     this.btnRemove.Click += new EventHandler(this.OnbtnRemove_Click);
     this.btnOK.Click += new EventHandler(this.OnbtnOK_Click);
     this.selectedItemName.Paint += new PaintEventHandler(this.OnselectedItemName_Paint);
     this.listBoxItems.SelectedIndexChanged += new EventHandler(this.OnlistBoxItems_SelectedIndexChanged);
     this.listBoxItems.DrawItem += new DrawItemEventHandler(this.OnlistBoxItems_DrawItem);
     this.listBoxItems.MeasureItem += new MeasureItemEventHandler(this.OnlistBoxItems_MeasureItem);
     this.selectedItemProps.PropertyValueChanged += new PropertyValueChangedEventHandler(this.PropertyGrid_propertyValueChanged);
     base.Load += new EventHandler(this.OnFormLoad);
 }
 private void InitializeComponent()
 {
     ComponentResourceManager manager = new ComponentResourceManager(typeof(CollectionEditor));
     this.membersLabel = new Label();
     this.listbox = new CollectionEditor.FilterListBox();
     this.upButton = new System.Windows.Forms.Button();
     this.downButton = new System.Windows.Forms.Button();
     this.propertiesLabel = new Label();
     this.propertyBrowser = new VsPropertyGrid(base.Context);
     this.addButton = new CollectionEditor.SplitButton();
     this.removeButton = new System.Windows.Forms.Button();
     this.okButton = new System.Windows.Forms.Button();
     this.cancelButton = new System.Windows.Forms.Button();
     this.okCancelTableLayoutPanel = new TableLayoutPanel();
     this.overArchingTableLayoutPanel = new TableLayoutPanel();
     this.addRemoveTableLayoutPanel = new TableLayoutPanel();
     this.okCancelTableLayoutPanel.SuspendLayout();
     this.overArchingTableLayoutPanel.SuspendLayout();
     this.addRemoveTableLayoutPanel.SuspendLayout();
     base.SuspendLayout();
     manager.ApplyResources(this.membersLabel, "membersLabel");
     this.membersLabel.Margin = new Padding(0, 0, 3, 3);
     this.membersLabel.Name = "membersLabel";
     manager.ApplyResources(this.listbox, "listbox");
     this.listbox.SelectionMode = this.CanSelectMultipleInstances() ? SelectionMode.MultiExtended : SelectionMode.One;
     this.listbox.DrawMode = DrawMode.OwnerDrawFixed;
     this.listbox.FormattingEnabled = true;
     this.listbox.Margin = new Padding(0, 3, 3, 3);
     this.listbox.Name = "listbox";
     this.overArchingTableLayoutPanel.SetRowSpan(this.listbox, 2);
     manager.ApplyResources(this.upButton, "upButton");
     this.upButton.Name = "upButton";
     manager.ApplyResources(this.downButton, "downButton");
     this.downButton.Name = "downButton";
     manager.ApplyResources(this.propertiesLabel, "propertiesLabel");
     this.propertiesLabel.AutoEllipsis = true;
     this.propertiesLabel.Margin = new Padding(0, 0, 3, 3);
     this.propertiesLabel.Name = "propertiesLabel";
     manager.ApplyResources(this.propertyBrowser, "propertyBrowser");
     this.propertyBrowser.CommandsVisibleIfAvailable = false;
     this.propertyBrowser.Margin = new Padding(3, 3, 0, 3);
     this.propertyBrowser.Name = "propertyBrowser";
     this.overArchingTableLayoutPanel.SetRowSpan(this.propertyBrowser, 3);
     manager.ApplyResources(this.addButton, "addButton");
     this.addButton.Margin = new Padding(0, 3, 3, 3);
     this.addButton.Name = "addButton";
     manager.ApplyResources(this.removeButton, "removeButton");
     this.removeButton.Margin = new Padding(3, 3, 0, 3);
     this.removeButton.Name = "removeButton";
     manager.ApplyResources(this.okButton, "okButton");
     this.okButton.DialogResult = DialogResult.OK;
     this.okButton.Margin = new Padding(0, 3, 3, 0);
     this.okButton.Name = "okButton";
     manager.ApplyResources(this.cancelButton, "cancelButton");
     this.cancelButton.DialogResult = DialogResult.Cancel;
     this.cancelButton.Margin = new Padding(3, 3, 0, 0);
     this.cancelButton.Name = "cancelButton";
     manager.ApplyResources(this.okCancelTableLayoutPanel, "okCancelTableLayoutPanel");
     this.overArchingTableLayoutPanel.SetColumnSpan(this.okCancelTableLayoutPanel, 3);
     this.okCancelTableLayoutPanel.Controls.Add(this.okButton, 0, 0);
     this.okCancelTableLayoutPanel.Controls.Add(this.cancelButton, 1, 0);
     this.okCancelTableLayoutPanel.Margin = new Padding(3, 3, 0, 0);
     this.okCancelTableLayoutPanel.Name = "okCancelTableLayoutPanel";
     manager.ApplyResources(this.overArchingTableLayoutPanel, "overArchingTableLayoutPanel");
     this.overArchingTableLayoutPanel.Controls.Add(this.downButton, 1, 2);
     this.overArchingTableLayoutPanel.Controls.Add(this.addRemoveTableLayoutPanel, 0, 3);
     this.overArchingTableLayoutPanel.Controls.Add(this.propertiesLabel, 2, 0);
     this.overArchingTableLayoutPanel.Controls.Add(this.membersLabel, 0, 0);
     this.overArchingTableLayoutPanel.Controls.Add(this.listbox, 0, 1);
     this.overArchingTableLayoutPanel.Controls.Add(this.propertyBrowser, 2, 1);
     this.overArchingTableLayoutPanel.Controls.Add(this.okCancelTableLayoutPanel, 0, 4);
     this.overArchingTableLayoutPanel.Controls.Add(this.upButton, 1, 1);
     this.overArchingTableLayoutPanel.Name = "overArchingTableLayoutPanel";
     manager.ApplyResources(this.addRemoveTableLayoutPanel, "addRemoveTableLayoutPanel");
     this.addRemoveTableLayoutPanel.Controls.Add(this.addButton, 0, 0);
     this.addRemoveTableLayoutPanel.Controls.Add(this.removeButton, 2, 0);
     this.addRemoveTableLayoutPanel.Margin = new Padding(0, 3, 3, 3);
     this.addRemoveTableLayoutPanel.Name = "addRemoveTableLayoutPanel";
     base.AcceptButton = this.okButton;
     manager.ApplyResources(this, "$this");
     base.AutoScaleMode = AutoScaleMode.Font;
     base.CancelButton = this.cancelButton;
     base.Controls.Add(this.overArchingTableLayoutPanel);
     base.HelpButton = true;
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "CollectionEditor";
     base.ShowIcon = false;
     base.ShowInTaskbar = false;
     this.okCancelTableLayoutPanel.ResumeLayout(false);
     this.okCancelTableLayoutPanel.PerformLayout();
     this.overArchingTableLayoutPanel.ResumeLayout(false);
     this.overArchingTableLayoutPanel.PerformLayout();
     this.addRemoveTableLayoutPanel.ResumeLayout(false);
     this.addRemoveTableLayoutPanel.PerformLayout();
     base.ResumeLayout(false);
 }