private void InitializeComponent() { this.components = new Container(); this.label1 = new Label(); this.buttonCancel = new NomadButton(); this.buttonOK = new NomadButton(); this.inventoryTree = new InventoryTree(); base.SuspendLayout(); this.label1.AutoSize = true; this.label1.Location = new Point(12, 9); this.label1.Name = "label1"; this.label1.Size = new Size(156, 13); this.label1.TabIndex = 0; this.label1.Text = "PROMPT_INVENTORY_TEXT"; this.buttonCancel.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); this.buttonCancel.DialogResult = DialogResult.Cancel; this.buttonCancel.Location = new Point(209, 273); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new Size(75, 23); this.buttonCancel.TabIndex = 3; this.buttonCancel.Text = "PROMPT_CANCEL"; this.buttonCancel.UseVisualStyleBackColor = true; this.buttonOK.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); this.buttonOK.DialogResult = DialogResult.OK; this.buttonOK.Enabled = false; this.buttonOK.Location = new Point(128, 273); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new Size(75, 23); this.buttonOK.TabIndex = 2; this.buttonOK.Text = "PROMPT_OK"; this.buttonOK.UseVisualStyleBackColor = true; this.inventoryTree.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.inventoryTree.HideSelection = false; this.inventoryTree.ImageIndex = 0; this.inventoryTree.Location = new Point(15, 25); this.inventoryTree.Name = "inventoryTree"; this.inventoryTree.Root = null; this.inventoryTree.SelectedImageIndex = 0; this.inventoryTree.Size = new Size(269, 244); this.inventoryTree.TabIndex = 1; this.inventoryTree.Value = null; this.inventoryTree.NodeMouseDoubleClick += new TreeNodeMouseClickEventHandler(this.inventoryTree_NodeMouseDoubleClick); this.inventoryTree.ValueChanged += new EventHandler(this.inventoryTree_ValueChanged); base.AcceptButton = this.buttonOK; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.CancelButton = this.buttonCancel; base.ClientSize = new Size(296, 300); base.Controls.Add(this.buttonOK); base.Controls.Add(this.buttonCancel); base.Controls.Add(this.inventoryTree); base.Controls.Add(this.label1); base.Name = "PromptInventory"; base.StartPosition = FormStartPosition.CenterParent; this.Text = "PROMPT_INVENTORY_TITLE"; base.ResumeLayout(false); base.PerformLayout(); }
private void InitializeComponent() { this.components = new Container(); this.splitContainer2 = new SplitContainer(); this.splitContainer1 = new SplitContainer(); this.objectTree = new InventoryTree(); this.toolStrip1 = new ToolStrip(); this.buttonNewFolder = new ToolStripButton(); this.buttonRenameFolder = new ToolStripButton(); this.buttonDeleteFolder = new ToolStripButton(); this.objectList = new InventoryList(this.components); this.toolStrip2 = new ToolStrip(); this.buttonAddPrefab = new ToolStripButton(); this.buttonRenameEntry = new ToolStripButton(); this.buttonSortEntries = new ToolStripButton(); this.textId = new TextBox(); this.buttonSaveDatabase = new Button(); this.buttonLocateInstances = new Button(); this.buttonBrowseWorld = new Button(); this.labelWorld = new Label(); this.label3 = new Label(); this.textTags = new TextBox(); this.label2 = new Label(); this.textDisplay = new TextBox(); this.label1 = new Label(); this.label0 = new Label(); this.objectThumbnail = new PictureBox(); this.splitContainer2.Panel1.SuspendLayout(); this.splitContainer2.Panel2.SuspendLayout(); this.splitContainer2.SuspendLayout(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); this.toolStrip1.SuspendLayout(); this.toolStrip2.SuspendLayout(); ((ISupportInitialize)this.objectThumbnail).BeginInit(); base.SuspendLayout(); this.splitContainer2.Dock = DockStyle.Fill; this.splitContainer2.FixedPanel = FixedPanel.Panel2; this.splitContainer2.Location = new Point(0, 0); this.splitContainer2.Name = "splitContainer2"; this.splitContainer2.Orientation = Orientation.Horizontal; this.splitContainer2.Panel1.Controls.Add(this.splitContainer1); this.splitContainer2.Panel2.Controls.Add(this.textId); this.splitContainer2.Panel2.Controls.Add(this.buttonSaveDatabase); this.splitContainer2.Panel2.Controls.Add(this.buttonLocateInstances); this.splitContainer2.Panel2.Controls.Add(this.buttonBrowseWorld); this.splitContainer2.Panel2.Controls.Add(this.labelWorld); this.splitContainer2.Panel2.Controls.Add(this.label3); this.splitContainer2.Panel2.Controls.Add(this.textTags); this.splitContainer2.Panel2.Controls.Add(this.label2); this.splitContainer2.Panel2.Controls.Add(this.textDisplay); this.splitContainer2.Panel2.Controls.Add(this.label1); this.splitContainer2.Panel2.Controls.Add(this.label0); this.splitContainer2.Panel2.Controls.Add(this.objectThumbnail); this.splitContainer2.Size = new Size(988, 696); this.splitContainer2.SplitterDistance = 476; this.splitContainer2.TabIndex = 3; this.splitContainer1.Dock = DockStyle.Fill; this.splitContainer1.Location = new Point(0, 0); this.splitContainer1.Name = "splitContainer1"; this.splitContainer1.Panel1.Controls.Add(this.objectTree); this.splitContainer1.Panel1.Controls.Add(this.toolStrip1); this.splitContainer1.Panel2.Controls.Add(this.objectList); this.splitContainer1.Panel2.Controls.Add(this.toolStrip2); this.splitContainer1.Size = new Size(988, 476); this.splitContainer1.SplitterDistance = 274; this.splitContainer1.TabIndex = 3; this.objectTree.AllowDrop = true; this.objectTree.Dock = DockStyle.Fill; this.objectTree.HideSelection = false; this.objectTree.ImageIndex = 0; this.objectTree.LabelEdit = true; this.objectTree.Location = new Point(0, 25); this.objectTree.Name = "objectTree"; this.objectTree.OnlyDirectories = true; this.objectTree.Root = null; this.objectTree.SelectedImageIndex = 0; this.objectTree.ShowRoot = true; this.objectTree.Size = new Size(274, 451); this.objectTree.TabIndex = 1; this.objectTree.Value = null; this.objectTree.BeforeLabelEdit += new NodeLabelEditEventHandler(this.objectTree_BeforeLabelEdit); this.objectTree.AfterLabelEdit += new NodeLabelEditEventHandler(this.objectTree_AfterLabelEdit); this.objectTree.ItemDrag += new ItemDragEventHandler(this.objectTree_ItemDrag); this.objectTree.AfterSelect += new TreeViewEventHandler(this.objectTree_AfterSelect); this.objectTree.DragDrop += new DragEventHandler(this.objectTree_DragDrop); this.objectTree.DragOver += new DragEventHandler(this.objectTree_DragOver); this.objectTree.GiveFeedback += new GiveFeedbackEventHandler(this.objectTree_GiveFeedback); this.objectTree.QueryContinueDrag += new QueryContinueDragEventHandler(this.objectTree_QueryContinueDrag); this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.buttonNewFolder, this.buttonRenameFolder, this.buttonDeleteFolder }); this.toolStrip1.Location = new Point(0, 0); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new Size(274, 25); this.toolStrip1.TabIndex = 2; this.toolStrip1.Text = "toolStrip1"; this.buttonNewFolder.DisplayStyle = ToolStripItemDisplayStyle.Image; this.buttonNewFolder.Image = Resources.NewFolderHS; this.buttonNewFolder.ImageTransparentColor = Color.Magenta; this.buttonNewFolder.Name = "buttonNewFolder"; this.buttonNewFolder.Size = new Size(23, 22); this.buttonNewFolder.Text = "New directory"; this.buttonNewFolder.Click += new EventHandler(this.buttonNewFolder_Click); this.buttonRenameFolder.DisplayStyle = ToolStripItemDisplayStyle.Image; this.buttonRenameFolder.Image = Resources.RenameFolderHS; this.buttonRenameFolder.ImageTransparentColor = Color.Magenta; this.buttonRenameFolder.Name = "buttonRenameFolder"; this.buttonRenameFolder.Size = new Size(23, 22); this.buttonRenameFolder.Text = "Rename directory"; this.buttonRenameFolder.Click += new EventHandler(this.buttonRenameFolder_Click); this.buttonDeleteFolder.DisplayStyle = ToolStripItemDisplayStyle.Image; this.buttonDeleteFolder.Image = Resources.DeleteFolderHS; this.buttonDeleteFolder.ImageTransparentColor = Color.Magenta; this.buttonDeleteFolder.Name = "buttonDeleteFolder"; this.buttonDeleteFolder.Size = new Size(23, 22); this.buttonDeleteFolder.Text = "Delete directory"; this.buttonDeleteFolder.Click += new EventHandler(this.buttonDeleteFolder_Click); this.objectList.Dock = DockStyle.Fill; this.objectList.LabelEdit = true; this.objectList.Location = new Point(0, 25); this.objectList.Name = "objectList"; this.objectList.OwnerDraw = true; this.objectList.Entries = null; this.objectList.Size = new Size(710, 451); this.objectList.TabIndex = 2; this.objectList.UseCompatibleStateImageBehavior = false; this.objectList.View = View.Tile; this.objectList.AfterLabelEdit += new LabelEditEventHandler(this.objectList_AfterLabelEdit); this.objectList.ItemDrag += new ItemDragEventHandler(this.objectList_ItemDrag); this.objectList.SelectedIndexChanged += new EventHandler(this.objectList_SelectedIndexChanged); this.objectList.QueryContinueDrag += new QueryContinueDragEventHandler(this.objectList_QueryContinueDrag); this.objectList.DoubleClick += new EventHandler(this.objectList_DoubleClick); this.toolStrip2.Items.AddRange(new ToolStripItem[] { this.buttonAddPrefab, this.buttonRenameEntry, this.buttonSortEntries }); this.toolStrip2.Location = new Point(0, 0); this.toolStrip2.Name = "toolStrip2"; this.toolStrip2.Size = new Size(710, 25); this.toolStrip2.TabIndex = 3; this.toolStrip2.Text = "toolStrip2"; this.buttonAddPrefab.DisplayStyle = ToolStripItemDisplayStyle.Image; this.buttonAddPrefab.Enabled = false; this.buttonAddPrefab.Image = Resources.prefab_new; this.buttonAddPrefab.ImageTransparentColor = Color.Magenta; this.buttonAddPrefab.Name = "buttonAddPrefab"; this.buttonAddPrefab.Size = new Size(23, 22); this.buttonAddPrefab.Text = "Add prefab"; this.buttonAddPrefab.Click += new EventHandler(this.buttonAddPrefab_Click); this.buttonRenameEntry.DisplayStyle = ToolStripItemDisplayStyle.Image; this.buttonRenameEntry.Image = Resources.RenameFolderHS; this.buttonRenameEntry.ImageTransparentColor = Color.Magenta; this.buttonRenameEntry.Name = "buttonRenameEntry"; this.buttonRenameEntry.Size = new Size(23, 22); this.buttonRenameEntry.Text = "Rename entry"; this.buttonRenameEntry.Click += new EventHandler(this.buttonRenameEntry_Click); this.buttonSortEntries.DisplayStyle = ToolStripItemDisplayStyle.Image; this.buttonSortEntries.Image = Resources.SortHS; this.buttonSortEntries.ImageTransparentColor = Color.Magenta; this.buttonSortEntries.Name = "buttonSortEntries"; this.buttonSortEntries.Size = new Size(23, 22); this.buttonSortEntries.Text = "buttonSortEntries"; this.buttonSortEntries.Click += new EventHandler(this.buttonSortEntries_Click); this.textId.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); this.textId.Location = new Point(251, 3); this.textId.Name = "textId"; this.textId.Size = new Size(734, 20); this.textId.TabIndex = 11; this.buttonSaveDatabase.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); this.buttonSaveDatabase.Location = new Point(870, 191); this.buttonSaveDatabase.Name = "buttonSaveDatabase"; this.buttonSaveDatabase.Size = new Size(115, 23); this.buttonSaveDatabase.TabIndex = 10; this.buttonSaveDatabase.Text = "Save database"; this.buttonSaveDatabase.UseVisualStyleBackColor = true; this.buttonSaveDatabase.Click += new EventHandler(this.buttonSaveDatabase_Click); this.buttonLocateInstances.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.buttonLocateInstances.Location = new Point(870, 82); this.buttonLocateInstances.Name = "buttonLocateInstances"; this.buttonLocateInstances.Size = new Size(115, 23); this.buttonLocateInstances.TabIndex = 9; this.buttonLocateInstances.Text = "Locate instances..."; this.buttonLocateInstances.UseVisualStyleBackColor = true; this.buttonLocateInstances.Click += new EventHandler(this.buttonLocateInstances_Click); this.buttonBrowseWorld.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.buttonBrowseWorld.Location = new Point(772, 82); this.buttonBrowseWorld.Name = "buttonBrowseWorld"; this.buttonBrowseWorld.Size = new Size(92, 23); this.buttonBrowseWorld.TabIndex = 8; this.buttonBrowseWorld.Text = "Browse world..."; this.buttonBrowseWorld.UseVisualStyleBackColor = true; this.buttonBrowseWorld.Click += new EventHandler(this.buttonBrowseWorld_Click); this.labelWorld.AutoSize = true; this.labelWorld.Location = new Point(287, 82); this.labelWorld.Name = "labelWorld"; this.labelWorld.Size = new Size(0, 13); this.labelWorld.TabIndex = 7; this.label3.AutoSize = true; this.label3.Location = new Point(201, 82); this.label3.Name = "label3"; this.label3.Size = new Size(80, 13); this.label3.TabIndex = 6; this.label3.Text = "Selected world:"; this.textTags.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); this.textTags.Location = new Point(251, 55); this.textTags.Name = "textTags"; this.textTags.Size = new Size(734, 20); this.textTags.TabIndex = 5; this.label2.AutoSize = true; this.label2.Location = new Point(201, 58); this.label2.Name = "label2"; this.label2.Size = new Size(34, 13); this.label2.TabIndex = 4; this.label2.Text = "Tags:"; this.textDisplay.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); this.textDisplay.Location = new Point(251, 29); this.textDisplay.Name = "textDisplay"; this.textDisplay.Size = new Size(734, 20); this.textDisplay.TabIndex = 3; this.textDisplay.KeyDown += new KeyEventHandler(this.textDisplay_KeyDown); this.textDisplay.Leave += new EventHandler(this.textDisplay_Leave); this.label1.AutoSize = true; this.label1.Location = new Point(201, 32); this.label1.Name = "label1"; this.label1.Size = new Size(44, 13); this.label1.TabIndex = 2; this.label1.Text = "Display:"; this.label0.AutoSize = true; this.label0.Location = new Point(201, 6); this.label0.Name = "label0"; this.label0.Size = new Size(21, 13); this.label0.TabIndex = 1; this.label0.Text = "ID:"; this.objectThumbnail.Location = new Point(3, 3); this.objectThumbnail.Name = "objectThumbnail"; this.objectThumbnail.Size = new Size(192, 192); this.objectThumbnail.SizeMode = PictureBoxSizeMode.Zoom; this.objectThumbnail.TabIndex = 0; this.objectThumbnail.TabStop = false; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.Controls.Add(this.splitContainer2); base.Name = "ObjectAdmin"; base.Size = new Size(988, 696); this.splitContainer2.Panel1.ResumeLayout(false); this.splitContainer2.Panel2.ResumeLayout(false); this.splitContainer2.Panel2.PerformLayout(); this.splitContainer2.ResumeLayout(false); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel1.PerformLayout(); this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.Panel2.PerformLayout(); this.splitContainer1.ResumeLayout(false); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.toolStrip2.ResumeLayout(false); this.toolStrip2.PerformLayout(); ((ISupportInitialize)this.objectThumbnail).EndInit(); base.ResumeLayout(false); }
private void InitializeComponent() { this.components = new Container(); this.label1 = new Label(); this.tableLayoutPanel1 = new TableLayoutPanel(); this.label4 = new Label(); this.label3 = new Label(); this.label2 = new Label(); this.selObjNameLabel = new Label(); this.selObjSizeLabel = new Label(); this.textBoxSearchObjInv = new TextBox(); this.parentButton = new NomadButton(); this.objectList = new InventoryList(this.components); this.categoryComboBox = new IndentedComboBox(); this.inventoryTree = new InventoryTree(); this.tableLayoutPanel1.SuspendLayout(); base.SuspendLayout(); this.label1.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); this.label1.Location = new Point(3, 2); this.label1.Name = "label1"; this.label1.Size = new Size(203, 13); this.label1.TabIndex = 1; this.label1.Text = "PARAM_OBJECT_BROWSER"; this.tableLayoutPanel1.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.tableLayoutPanel1.AutoSize = true; this.tableLayoutPanel1.ColumnCount = 2; this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); this.tableLayoutPanel1.Controls.Add(this.label4, 0, 0); this.tableLayoutPanel1.Controls.Add(this.label3, 0, 2); this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1); this.tableLayoutPanel1.Controls.Add(this.selObjNameLabel, 1, 1); this.tableLayoutPanel1.Controls.Add(this.selObjSizeLabel, 1, 2); this.tableLayoutPanel1.Controls.Add(this.textBoxSearchObjInv, 1, 0); this.tableLayoutPanel1.GrowStyle = TableLayoutPanelGrowStyle.FixedSize; this.tableLayoutPanel1.Location = new Point(3, 365); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 3; this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 23f)); this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 16f)); this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 16f)); this.tableLayoutPanel1.Size = new Size(203, 55); this.tableLayoutPanel1.TabIndex = 9; this.label4.Dock = DockStyle.Fill; this.label4.Location = new Point(0, 0); this.label4.Margin = new Padding(0); this.label4.Name = "label4"; this.label4.Size = new Size(101, 23); this.label4.TabIndex = 9; this.label4.Text = "PARAM_OBJECT_SEARCH"; this.label4.TextAlign = ContentAlignment.MiddleLeft; this.label3.Dock = DockStyle.Fill; this.label3.Location = new Point(0, 39); this.label3.Margin = new Padding(0); this.label3.Name = "label3"; this.label3.Size = new Size(101, 16); this.label3.TabIndex = 6; this.label3.Text = "PARAM_OBJECT_BROWSER_SIZE"; this.label3.TextAlign = ContentAlignment.MiddleLeft; this.label2.Dock = DockStyle.Fill; this.label2.Location = new Point(0, 23); this.label2.Margin = new Padding(0); this.label2.Name = "label2"; this.label2.Size = new Size(101, 16); this.label2.TabIndex = 3; this.label2.Text = "PARAM_OBJECT_BROWSER_SELECTED"; this.label2.TextAlign = ContentAlignment.MiddleLeft; this.selObjNameLabel.BorderStyle = BorderStyle.Fixed3D; this.selObjNameLabel.Dock = DockStyle.Fill; this.selObjNameLabel.Location = new Point(101, 23); this.selObjNameLabel.Margin = new Padding(0); this.selObjNameLabel.Name = "selObjNameLabel"; this.selObjNameLabel.Size = new Size(102, 16); this.selObjNameLabel.TabIndex = 5; this.selObjNameLabel.Text = "None"; this.selObjNameLabel.TextAlign = ContentAlignment.MiddleRight; this.selObjSizeLabel.BorderStyle = BorderStyle.Fixed3D; this.selObjSizeLabel.Dock = DockStyle.Fill; this.selObjSizeLabel.Location = new Point(101, 39); this.selObjSizeLabel.Margin = new Padding(0); this.selObjSizeLabel.Name = "selObjSizeLabel"; this.selObjSizeLabel.Size = new Size(102, 16); this.selObjSizeLabel.TabIndex = 7; this.selObjSizeLabel.Text = "None"; this.selObjSizeLabel.TextAlign = ContentAlignment.MiddleRight; this.textBoxSearchObjInv.Dock = DockStyle.Fill; this.textBoxSearchObjInv.Location = new Point(101, 0); this.textBoxSearchObjInv.Margin = new Padding(0); this.textBoxSearchObjInv.Name = "textBoxSearchObjInv"; this.textBoxSearchObjInv.Size = new Size(102, 20); this.textBoxSearchObjInv.TabIndex = 8; this.textBoxSearchObjInv.KeyDown += new KeyEventHandler(this.textBoxSearchObjInv_KeyDown); this.parentButton.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.parentButton.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.parentButton.Image = Resources.up; this.parentButton.Location = new Point(182, 17); this.parentButton.Name = "parentButton"; this.parentButton.Size = new Size(26, 26); this.parentButton.TabIndex = 8; this.parentButton.UseVisualStyleBackColor = true; this.parentButton.Click += new EventHandler(this.parentButton_Click); this.objectList.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.objectList.Entries = null; this.objectList.FirstVisibleIndex = -1; this.objectList.HideSelection = false; this.objectList.Location = new Point(3, 43); this.objectList.MultiSelect = false; this.objectList.Name = "objectList"; this.objectList.OwnerDraw = true; this.objectList.Size = new Size(203, 319); this.objectList.TabIndex = 7; this.objectList.UseCompatibleStateImageBehavior = false; this.objectList.View = View.Tile; this.objectList.SelectedIndexChanged += new EventHandler(this.objectList_SelectedIndexChanged); this.objectList.DoubleClick += new EventHandler(this.objectList_DoubleClick); this.categoryComboBox.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); this.categoryComboBox.Location = new Point(3, 18); this.categoryComboBox.MaximumSize = new Size(9999, 24); this.categoryComboBox.MinimumSize = new Size(0, 24); this.categoryComboBox.Name = "categoryComboBox"; this.categoryComboBox.SelectedItem = null; this.categoryComboBox.Size = new Size(176, 24); this.categoryComboBox.TabIndex = 6; this.categoryComboBox.SelectedItemChanged += new EventHandler<IndentedComboboxItemEventArgs>(this.indentedComboBox1_SelectedItemChanged); this.inventoryTree.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); this.inventoryTree.HideSelection = false; this.inventoryTree.ImageIndex = 0; this.inventoryTree.Location = new Point(3, 18); this.inventoryTree.Name = "inventoryTree"; this.inventoryTree.OnlyDirectories = false; this.inventoryTree.Root = null; this.inventoryTree.SelectedImageIndex = 0; this.inventoryTree.ShowRoot = false; this.inventoryTree.Size = new Size(203, 190); this.inventoryTree.TabIndex = 0; this.inventoryTree.Value = null; this.inventoryTree.Visible = false; this.inventoryTree.ValueChanged += new EventHandler(this.inventoryTree_ValueChanged); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.Controls.Add(this.tableLayoutPanel1); base.Controls.Add(this.parentButton); base.Controls.Add(this.objectList); base.Controls.Add(this.categoryComboBox); base.Controls.Add(this.label1); base.Controls.Add(this.inventoryTree); base.Name = "ParamObjectInventoryTree"; base.Size = new Size(209, 425); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
private void InitializeComponent() { this.components = new Container(); this.label1 = new Label(); this.tableLayoutPanel1 = new TableLayoutPanel(); this.label4 = new Label(); this.label3 = new Label(); this.label2 = new Label(); this.selObjNameLabel = new Label(); this.selObjSizeLabel = new Label(); this.textBoxSearchObjInv = new TextBox(); this.parentButton = new NomadButton(); this.objectList = new InventoryList(this.components); this.categoryComboBox = new IndentedComboBox(); this.inventoryTree = new InventoryTree(); this.tableLayoutPanel1.SuspendLayout(); base.SuspendLayout(); this.label1.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); this.label1.Location = new Point(3, 2); this.label1.Name = "label1"; this.label1.Size = new Size(203, 13); this.label1.TabIndex = 1; this.label1.Text = "PARAM_OBJECT_BROWSER"; this.tableLayoutPanel1.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.tableLayoutPanel1.AutoSize = true; this.tableLayoutPanel1.ColumnCount = 2; this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); this.tableLayoutPanel1.Controls.Add(this.label4, 0, 0); this.tableLayoutPanel1.Controls.Add(this.label3, 0, 2); this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1); this.tableLayoutPanel1.Controls.Add(this.selObjNameLabel, 1, 1); this.tableLayoutPanel1.Controls.Add(this.selObjSizeLabel, 1, 2); this.tableLayoutPanel1.Controls.Add(this.textBoxSearchObjInv, 1, 0); this.tableLayoutPanel1.GrowStyle = TableLayoutPanelGrowStyle.FixedSize; this.tableLayoutPanel1.Location = new Point(3, 365); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 3; this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 23f)); this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 16f)); this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 16f)); this.tableLayoutPanel1.Size = new Size(203, 55); this.tableLayoutPanel1.TabIndex = 9; this.label4.Dock = DockStyle.Fill; this.label4.Location = new Point(0, 0); this.label4.Margin = new Padding(0); this.label4.Name = "label4"; this.label4.Size = new Size(101, 23); this.label4.TabIndex = 9; this.label4.Text = "PARAM_OBJECT_SEARCH"; this.label4.TextAlign = ContentAlignment.MiddleLeft; this.label3.Dock = DockStyle.Fill; this.label3.Location = new Point(0, 39); this.label3.Margin = new Padding(0); this.label3.Name = "label3"; this.label3.Size = new Size(101, 16); this.label3.TabIndex = 6; this.label3.Text = "PARAM_OBJECT_BROWSER_SIZE"; this.label3.TextAlign = ContentAlignment.MiddleLeft; this.label2.Dock = DockStyle.Fill; this.label2.Location = new Point(0, 23); this.label2.Margin = new Padding(0); this.label2.Name = "label2"; this.label2.Size = new Size(101, 16); this.label2.TabIndex = 3; this.label2.Text = "PARAM_OBJECT_BROWSER_SELECTED"; this.label2.TextAlign = ContentAlignment.MiddleLeft; this.selObjNameLabel.BorderStyle = BorderStyle.Fixed3D; this.selObjNameLabel.Dock = DockStyle.Fill; this.selObjNameLabel.Location = new Point(101, 23); this.selObjNameLabel.Margin = new Padding(0); this.selObjNameLabel.Name = "selObjNameLabel"; this.selObjNameLabel.Size = new Size(102, 16); this.selObjNameLabel.TabIndex = 5; this.selObjNameLabel.Text = "None"; this.selObjNameLabel.TextAlign = ContentAlignment.MiddleRight; this.selObjSizeLabel.BorderStyle = BorderStyle.Fixed3D; this.selObjSizeLabel.Dock = DockStyle.Fill; this.selObjSizeLabel.Location = new Point(101, 39); this.selObjSizeLabel.Margin = new Padding(0); this.selObjSizeLabel.Name = "selObjSizeLabel"; this.selObjSizeLabel.Size = new Size(102, 16); this.selObjSizeLabel.TabIndex = 7; this.selObjSizeLabel.Text = "None"; this.selObjSizeLabel.TextAlign = ContentAlignment.MiddleRight; this.textBoxSearchObjInv.Dock = DockStyle.Fill; this.textBoxSearchObjInv.Location = new Point(101, 0); this.textBoxSearchObjInv.Margin = new Padding(0); this.textBoxSearchObjInv.Name = "textBoxSearchObjInv"; this.textBoxSearchObjInv.Size = new Size(102, 20); this.textBoxSearchObjInv.TabIndex = 8; this.textBoxSearchObjInv.KeyDown += new KeyEventHandler(this.textBoxSearchObjInv_KeyDown); this.parentButton.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.parentButton.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.parentButton.Image = Resources.up; this.parentButton.Location = new Point(182, 17); this.parentButton.Name = "parentButton"; this.parentButton.Size = new Size(26, 26); this.parentButton.TabIndex = 8; this.parentButton.UseVisualStyleBackColor = true; this.parentButton.Click += new EventHandler(this.parentButton_Click); this.objectList.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.objectList.Entries = null; this.objectList.FirstVisibleIndex = -1; this.objectList.HideSelection = false; this.objectList.Location = new Point(3, 43); this.objectList.MultiSelect = false; this.objectList.Name = "objectList"; this.objectList.OwnerDraw = true; this.objectList.Size = new Size(203, 319); this.objectList.TabIndex = 7; this.objectList.UseCompatibleStateImageBehavior = false; this.objectList.View = View.Tile; this.objectList.SelectedIndexChanged += new EventHandler(this.objectList_SelectedIndexChanged); this.objectList.DoubleClick += new EventHandler(this.objectList_DoubleClick); this.categoryComboBox.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); this.categoryComboBox.Location = new Point(3, 18); this.categoryComboBox.MaximumSize = new Size(9999, 24); this.categoryComboBox.MinimumSize = new Size(0, 24); this.categoryComboBox.Name = "categoryComboBox"; this.categoryComboBox.SelectedItem = null; this.categoryComboBox.Size = new Size(176, 24); this.categoryComboBox.TabIndex = 6; this.categoryComboBox.SelectedItemChanged += new EventHandler <IndentedComboboxItemEventArgs>(this.indentedComboBox1_SelectedItemChanged); this.inventoryTree.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); this.inventoryTree.HideSelection = false; this.inventoryTree.ImageIndex = 0; this.inventoryTree.Location = new Point(3, 18); this.inventoryTree.Name = "inventoryTree"; this.inventoryTree.OnlyDirectories = false; this.inventoryTree.Root = null; this.inventoryTree.SelectedImageIndex = 0; this.inventoryTree.ShowRoot = false; this.inventoryTree.Size = new Size(203, 190); this.inventoryTree.TabIndex = 0; this.inventoryTree.Value = null; this.inventoryTree.Visible = false; this.inventoryTree.ValueChanged += new EventHandler(this.inventoryTree_ValueChanged); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.Controls.Add(this.tableLayoutPanel1); base.Controls.Add(this.parentButton); base.Controls.Add(this.objectList); base.Controls.Add(this.categoryComboBox); base.Controls.Add(this.label1); base.Controls.Add(this.inventoryTree); base.Name = "ParamObjectInventoryTree"; base.Size = new Size(209, 425); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }