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(TreeNodeCollectionEditor));

                this.okCancelPanel                     = new TableLayoutPanel();
                this.okButton                          = new Button();
                this.btnCancel                         = new Button();
                this.nodeControlPanel                  = new TableLayoutPanel();
                this.btnAddRoot                        = new Button();
                this.btnAddChild                       = new Button();
                this.btnDelete                         = new Button();
                this.moveDownButton                    = new Button();
                this.moveUpButton                      = new Button();
                this.propertyGrid1                     = new VsPropertyGrid(base.Context);
                this.label2                            = new Label();
                this.treeView1                         = new System.Windows.Forms.TreeView();
                this.label1                            = new Label();
                this.overarchingTableLayoutPanel       = new TableLayoutPanel();
                this.navigationButtonsTableLayoutPanel = new TableLayoutPanel();
                this.okCancelPanel.SuspendLayout();
                this.nodeControlPanel.SuspendLayout();
                this.overarchingTableLayoutPanel.SuspendLayout();
                this.navigationButtonsTableLayoutPanel.SuspendLayout();
                base.SuspendLayout();
                manager.ApplyResources(this.okCancelPanel, "okCancelPanel");
                this.okCancelPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
                this.okCancelPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
                this.okCancelPanel.Controls.Add(this.okButton, 0, 0);
                this.okCancelPanel.Controls.Add(this.btnCancel, 1, 0);
                this.okCancelPanel.Margin = new Padding(3, 3, 0, 0);
                this.okCancelPanel.Name   = "okCancelPanel";
                this.okCancelPanel.RowStyles.Add(new RowStyle());
                manager.ApplyResources(this.okButton, "okButton");
                this.okButton.DialogResult = DialogResult.OK;
                this.okButton.Margin       = new Padding(0, 0, 3, 0);
                this.okButton.Name         = "okButton";
                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.nodeControlPanel, "nodeControlPanel");
                this.nodeControlPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
                this.nodeControlPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
                this.nodeControlPanel.Controls.Add(this.btnAddRoot, 0, 0);
                this.nodeControlPanel.Controls.Add(this.btnAddChild, 1, 0);
                this.nodeControlPanel.Margin = new Padding(0, 3, 3, 3);
                this.nodeControlPanel.Name   = "nodeControlPanel";
                this.nodeControlPanel.RowStyles.Add(new RowStyle());
                manager.ApplyResources(this.btnAddRoot, "btnAddRoot");
                this.btnAddRoot.Margin = new Padding(0, 0, 3, 0);
                this.btnAddRoot.Name   = "btnAddRoot";
                manager.ApplyResources(this.btnAddChild, "btnAddChild");
                this.btnAddChild.Margin = new Padding(3, 0, 0, 0);
                this.btnAddChild.Name   = "btnAddChild";
                manager.ApplyResources(this.btnDelete, "btnDelete");
                this.btnDelete.Margin = new Padding(0, 3, 0, 0);
                this.btnDelete.Name   = "btnDelete";
                manager.ApplyResources(this.moveDownButton, "moveDownButton");
                this.moveDownButton.Margin = new Padding(0, 1, 0, 3);
                this.moveDownButton.Name   = "moveDownButton";
                manager.ApplyResources(this.moveUpButton, "moveUpButton");
                this.moveUpButton.Margin = new Padding(0, 0, 0, 1);
                this.moveUpButton.Name   = "moveUpButton";
                manager.ApplyResources(this.propertyGrid1, "propertyGrid1");
                this.propertyGrid1.LineColor = SystemColors.ScrollBar;
                this.propertyGrid1.Margin    = new Padding(3, 3, 0, 3);
                this.propertyGrid1.Name      = "propertyGrid1";
                this.overarchingTableLayoutPanel.SetRowSpan(this.propertyGrid1, 2);
                manager.ApplyResources(this.label2, "label2");
                this.label2.Margin       = new Padding(3, 1, 0, 0);
                this.label2.Name         = "label2";
                this.treeView1.AllowDrop = true;
                manager.ApplyResources(this.treeView1, "treeView1");
                this.treeView1.HideSelection = false;
                this.treeView1.Margin        = new Padding(0, 3, 3, 3);
                this.treeView1.Name          = "treeView1";
                manager.ApplyResources(this.label1, "label1");
                this.label1.Margin = new Padding(0, 1, 3, 0);
                this.label1.Name   = "label1";
                manager.ApplyResources(this.overarchingTableLayoutPanel, "overarchingTableLayoutPanel");
                this.overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle());
                this.overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle());
                this.overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f));
                this.overarchingTableLayoutPanel.Controls.Add(this.navigationButtonsTableLayoutPanel, 1, 1);
                this.overarchingTableLayoutPanel.Controls.Add(this.label2, 2, 0);
                this.overarchingTableLayoutPanel.Controls.Add(this.propertyGrid1, 2, 1);
                this.overarchingTableLayoutPanel.Controls.Add(this.treeView1, 0, 1);
                this.overarchingTableLayoutPanel.Controls.Add(this.label1, 0, 0);
                this.overarchingTableLayoutPanel.Controls.Add(this.nodeControlPanel, 0, 2);
                this.overarchingTableLayoutPanel.Controls.Add(this.okCancelPanel, 2, 3);
                this.overarchingTableLayoutPanel.Name = "overarchingTableLayoutPanel";
                this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
                this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100f));
                this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
                this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
                manager.ApplyResources(this.navigationButtonsTableLayoutPanel, "navigationButtonsTableLayoutPanel");
                this.navigationButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle());
                this.navigationButtonsTableLayoutPanel.Controls.Add(this.moveUpButton, 0, 0);
                this.navigationButtonsTableLayoutPanel.Controls.Add(this.btnDelete, 0, 2);
                this.navigationButtonsTableLayoutPanel.Controls.Add(this.moveDownButton, 0, 1);
                this.navigationButtonsTableLayoutPanel.Margin = new Padding(3, 3, 0x12, 3);
                this.navigationButtonsTableLayoutPanel.Name   = "navigationButtonsTableLayoutPanel";
                this.navigationButtonsTableLayoutPanel.RowStyles.Add(new RowStyle());
                this.navigationButtonsTableLayoutPanel.RowStyles.Add(new RowStyle());
                this.navigationButtonsTableLayoutPanel.RowStyles.Add(new RowStyle());
                base.AcceptButton = this.okButton;
                manager.ApplyResources(this, "$this");
                base.AutoScaleMode = AutoScaleMode.Font;
                base.CancelButton  = this.btnCancel;
                base.Controls.Add(this.overarchingTableLayoutPanel);
                base.HelpButton    = true;
                base.MaximizeBox   = false;
                base.MinimizeBox   = false;
                base.Name          = "TreeNodeCollectionEditor";
                base.ShowIcon      = false;
                base.ShowInTaskbar = false;
                base.SizeGripStyle = SizeGripStyle.Show;
                this.okCancelPanel.ResumeLayout(false);
                this.okCancelPanel.PerformLayout();
                this.nodeControlPanel.ResumeLayout(false);
                this.nodeControlPanel.PerformLayout();
                this.overarchingTableLayoutPanel.ResumeLayout(false);
                this.overarchingTableLayoutPanel.PerformLayout();
                this.navigationButtonsTableLayoutPanel.ResumeLayout(false);
                base.ResumeLayout(false);
            }
Example #3
0
            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(TreeNodeCollectionEditor));
     this.okCancelPanel = new TableLayoutPanel();
     this.okButton = new Button();
     this.btnCancel = new Button();
     this.nodeControlPanel = new TableLayoutPanel();
     this.btnAddRoot = new Button();
     this.btnAddChild = new Button();
     this.btnDelete = new Button();
     this.moveDownButton = new Button();
     this.moveUpButton = new Button();
     this.propertyGrid1 = new VsPropertyGrid(base.Context);
     this.label2 = new Label();
     this.treeView1 = new System.Windows.Forms.TreeView();
     this.label1 = new Label();
     this.overarchingTableLayoutPanel = new TableLayoutPanel();
     this.navigationButtonsTableLayoutPanel = new TableLayoutPanel();
     this.okCancelPanel.SuspendLayout();
     this.nodeControlPanel.SuspendLayout();
     this.overarchingTableLayoutPanel.SuspendLayout();
     this.navigationButtonsTableLayoutPanel.SuspendLayout();
     base.SuspendLayout();
     manager.ApplyResources(this.okCancelPanel, "okCancelPanel");
     this.okCancelPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.okCancelPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.okCancelPanel.Controls.Add(this.okButton, 0, 0);
     this.okCancelPanel.Controls.Add(this.btnCancel, 1, 0);
     this.okCancelPanel.Margin = new Padding(3, 3, 0, 0);
     this.okCancelPanel.Name = "okCancelPanel";
     this.okCancelPanel.RowStyles.Add(new RowStyle());
     manager.ApplyResources(this.okButton, "okButton");
     this.okButton.DialogResult = DialogResult.OK;
     this.okButton.Margin = new Padding(0, 0, 3, 0);
     this.okButton.Name = "okButton";
     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.nodeControlPanel, "nodeControlPanel");
     this.nodeControlPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.nodeControlPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.nodeControlPanel.Controls.Add(this.btnAddRoot, 0, 0);
     this.nodeControlPanel.Controls.Add(this.btnAddChild, 1, 0);
     this.nodeControlPanel.Margin = new Padding(0, 3, 3, 3);
     this.nodeControlPanel.Name = "nodeControlPanel";
     this.nodeControlPanel.RowStyles.Add(new RowStyle());
     manager.ApplyResources(this.btnAddRoot, "btnAddRoot");
     this.btnAddRoot.Margin = new Padding(0, 0, 3, 0);
     this.btnAddRoot.Name = "btnAddRoot";
     manager.ApplyResources(this.btnAddChild, "btnAddChild");
     this.btnAddChild.Margin = new Padding(3, 0, 0, 0);
     this.btnAddChild.Name = "btnAddChild";
     manager.ApplyResources(this.btnDelete, "btnDelete");
     this.btnDelete.Margin = new Padding(0, 3, 0, 0);
     this.btnDelete.Name = "btnDelete";
     manager.ApplyResources(this.moveDownButton, "moveDownButton");
     this.moveDownButton.Margin = new Padding(0, 1, 0, 3);
     this.moveDownButton.Name = "moveDownButton";
     manager.ApplyResources(this.moveUpButton, "moveUpButton");
     this.moveUpButton.Margin = new Padding(0, 0, 0, 1);
     this.moveUpButton.Name = "moveUpButton";
     manager.ApplyResources(this.propertyGrid1, "propertyGrid1");
     this.propertyGrid1.LineColor = SystemColors.ScrollBar;
     this.propertyGrid1.Margin = new Padding(3, 3, 0, 3);
     this.propertyGrid1.Name = "propertyGrid1";
     this.overarchingTableLayoutPanel.SetRowSpan(this.propertyGrid1, 2);
     manager.ApplyResources(this.label2, "label2");
     this.label2.Margin = new Padding(3, 1, 0, 0);
     this.label2.Name = "label2";
     this.treeView1.AllowDrop = true;
     manager.ApplyResources(this.treeView1, "treeView1");
     this.treeView1.HideSelection = false;
     this.treeView1.Margin = new Padding(0, 3, 3, 3);
     this.treeView1.Name = "treeView1";
     manager.ApplyResources(this.label1, "label1");
     this.label1.Margin = new Padding(0, 1, 3, 0);
     this.label1.Name = "label1";
     manager.ApplyResources(this.overarchingTableLayoutPanel, "overarchingTableLayoutPanel");
     this.overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle());
     this.overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle());
     this.overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f));
     this.overarchingTableLayoutPanel.Controls.Add(this.navigationButtonsTableLayoutPanel, 1, 1);
     this.overarchingTableLayoutPanel.Controls.Add(this.label2, 2, 0);
     this.overarchingTableLayoutPanel.Controls.Add(this.propertyGrid1, 2, 1);
     this.overarchingTableLayoutPanel.Controls.Add(this.treeView1, 0, 1);
     this.overarchingTableLayoutPanel.Controls.Add(this.label1, 0, 0);
     this.overarchingTableLayoutPanel.Controls.Add(this.nodeControlPanel, 0, 2);
     this.overarchingTableLayoutPanel.Controls.Add(this.okCancelPanel, 2, 3);
     this.overarchingTableLayoutPanel.Name = "overarchingTableLayoutPanel";
     this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
     this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100f));
     this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
     this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
     manager.ApplyResources(this.navigationButtonsTableLayoutPanel, "navigationButtonsTableLayoutPanel");
     this.navigationButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle());
     this.navigationButtonsTableLayoutPanel.Controls.Add(this.moveUpButton, 0, 0);
     this.navigationButtonsTableLayoutPanel.Controls.Add(this.btnDelete, 0, 2);
     this.navigationButtonsTableLayoutPanel.Controls.Add(this.moveDownButton, 0, 1);
     this.navigationButtonsTableLayoutPanel.Margin = new Padding(3, 3, 0x12, 3);
     this.navigationButtonsTableLayoutPanel.Name = "navigationButtonsTableLayoutPanel";
     this.navigationButtonsTableLayoutPanel.RowStyles.Add(new RowStyle());
     this.navigationButtonsTableLayoutPanel.RowStyles.Add(new RowStyle());
     this.navigationButtonsTableLayoutPanel.RowStyles.Add(new RowStyle());
     base.AcceptButton = this.okButton;
     manager.ApplyResources(this, "$this");
     base.AutoScaleMode = AutoScaleMode.Font;
     base.CancelButton = this.btnCancel;
     base.Controls.Add(this.overarchingTableLayoutPanel);
     base.HelpButton = true;
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "TreeNodeCollectionEditor";
     base.ShowIcon = false;
     base.ShowInTaskbar = false;
     base.SizeGripStyle = SizeGripStyle.Show;
     this.okCancelPanel.ResumeLayout(false);
     this.okCancelPanel.PerformLayout();
     this.nodeControlPanel.ResumeLayout(false);
     this.nodeControlPanel.PerformLayout();
     this.overarchingTableLayoutPanel.ResumeLayout(false);
     this.overarchingTableLayoutPanel.PerformLayout();
     this.navigationButtonsTableLayoutPanel.ResumeLayout(false);
     base.ResumeLayout(false);
 }
 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);
 }