private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(navigation)); this.splitContainer1 = new SplitContainer(); this.treeView = new TreeView(); this.filter = new TextBox(); this.listView1 = new GameDataList(); this.columnHeader2 = new ColumnHeader(); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.openItem = new ToolStripMenuItem(); this.listReferences = new ToolStripMenuItem(); this.toolStripSeparator3 = new ToolStripSeparator(); this.newItem = new ToolStripMenuItem(); this.duplicateItem = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.cleanItem = new ToolStripMenuItem(); this.setField = new ToolStripMenuItem(); this.clearChanges = new ToolStripMenuItem(); this.deleteItem = new ToolStripMenuItem(); this.toolStripSeparator2 = new ToolStripSeparator(); this.columnsMenu = new ToolStripMenuItem(); this.showStringID = new ToolStripMenuItem(); this.showRef = new ToolStripMenuItem(); this.showType = new ToolStripMenuItem(); this.showData = new ToolStripMenuItem(); this.toolStripSeparator4 = new ToolStripSeparator(); this.addColumn = new ToolStripMenuItem(); this.addRefColumn = new ToolStripMenuItem(); ((ISupportInitialize)this.splitContainer1).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); this.contextMenuStrip1.SuspendLayout(); base.SuspendLayout(); this.splitContainer1.Dock = DockStyle.Fill; this.splitContainer1.FixedPanel = FixedPanel.Panel1; this.splitContainer1.Location = new Point(0, 0); this.splitContainer1.Name = "splitContainer1"; this.splitContainer1.Panel1.Controls.Add(this.treeView); this.splitContainer1.Panel1MinSize = 100; this.splitContainer1.Panel2.Controls.Add(this.filter); this.splitContainer1.Panel2.Controls.Add(this.listView1); this.splitContainer1.Size = new System.Drawing.Size(800, 564); this.splitContainer1.SplitterDistance = 186; this.splitContainer1.TabIndex = 0; this.splitContainer1.TabStop = false; this.treeView.Dock = DockStyle.Fill; this.treeView.HideSelection = false; this.treeView.Location = new Point(0, 0); this.treeView.Name = "treeView"; this.treeView.Size = new System.Drawing.Size(186, 564); this.treeView.TabIndex = 0; this.treeView.AfterSelect += new TreeViewEventHandler(this.treeView_AfterSelect); this.filter.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.filter.BackColor = SystemColors.Window; this.filter.Location = new Point(0, 544); this.filter.Margin = new System.Windows.Forms.Padding(2); this.filter.Name = "filter"; this.filter.Size = new System.Drawing.Size(610, 20); this.filter.TabIndex = 2; this.filter.TextChanged += new EventHandler(this.filter_TextChanged); this.listView1.AllowColumnReorder = true; this.listView1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.listView1.Columns.AddRange(new ColumnHeader[] { this.columnHeader2 }); this.listView1.ContextMenuStrip = this.contextMenuStrip1; this.listView1.Filter = null; this.listView1.FullRowSelect = true; this.listView1.HideSelection = false; this.listView1.Location = new Point(0, 0); this.listView1.Name = "listView1"; this.listView1.Size = new System.Drawing.Size(610, 543); this.listView1.Sorting = SortOrder.Ascending; this.listView1.SortKey = "Name"; this.listView1.Source = null; this.listView1.TabIndex = 1; this.listView1.UseCompatibleStateImageBehavior = false; this.listView1.View = View.Details; this.listView1.VirtualMode = true; this.listView1.ColumnClick += new ColumnClickEventHandler(this.listView1_ColumnClick); this.listView1.DoubleClick += new EventHandler(this.listView1_DoubleClick); this.listView1.KeyDown += new KeyEventHandler(this.listView1_KeyDown); this.columnHeader2.Tag = "Name"; this.columnHeader2.Text = "名称"; this.columnHeader2.Width = 308; this.contextMenuStrip1.Items.AddRange(new ToolStripItem[] { this.openItem, this.listReferences, this.toolStripSeparator3, this.newItem, this.duplicateItem, this.toolStripSeparator1, this.cleanItem, this.setField, this.clearChanges, this.deleteItem, this.toolStripSeparator2, this.columnsMenu }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new System.Drawing.Size(157, 220); this.contextMenuStrip1.Opening += new CancelEventHandler(this.contextMenuStrip1_Opening); this.openItem.Name = "openItem"; this.openItem.Size = new System.Drawing.Size(156, 22); this.openItem.Text = "打开项目"; this.openItem.Click += new EventHandler(this.openItem_Click); this.listReferences.Name = "listReferences"; this.listReferences.Size = new System.Drawing.Size(156, 22); this.listReferences.Text = "列出引用"; this.listReferences.Click += new EventHandler(this.listReferences_Click); this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new System.Drawing.Size(153, 6); this.newItem.Name = "newItem"; this.newItem.Size = new System.Drawing.Size(156, 22); this.newItem.Text = "新项目"; this.newItem.Click += new EventHandler(this.newItem_Click); this.duplicateItem.Name = "duplicateItem"; this.duplicateItem.Size = new System.Drawing.Size(156, 22); this.duplicateItem.Text = "克隆项目"; this.duplicateItem.Click += new EventHandler(this.duplicateItem_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(153, 6); this.cleanItem.Name = "cleanItem"; this.cleanItem.Size = new System.Drawing.Size(156, 22); this.cleanItem.Text = "清理项目"; this.cleanItem.Click += new EventHandler(this.cleanItem_Click); this.setField.Name = "setField"; this.setField.Size = new System.Drawing.Size(156, 22); this.setField.Text = "设置字段"; this.setField.Click += new EventHandler(this.setField_Click); this.clearChanges.Name = "clearChanges"; this.clearChanges.Size = new System.Drawing.Size(156, 22); this.clearChanges.Text = "还原修改"; this.clearChanges.Click += new EventHandler(this.clearChanges_Click); this.deleteItem.Name = "deleteItem"; this.deleteItem.Size = new System.Drawing.Size(156, 22); this.deleteItem.Text = "删除项目"; this.deleteItem.Click += new EventHandler(this.deleteItem_Click); this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(153, 6); this.columnsMenu.DropDownItems.AddRange(new ToolStripItem[] { this.showStringID, this.showRef, this.showType, this.showData, this.toolStripSeparator4, this.addColumn, this.addRefColumn }); this.columnsMenu.Name = "columnsMenu"; this.columnsMenu.Size = new System.Drawing.Size(156, 22); this.columnsMenu.Text = "列"; this.showStringID.CheckOnClick = true; this.showStringID.Name = "showStringID"; this.showStringID.Size = new System.Drawing.Size(117, 22); this.showStringID.Text = "StringID"; this.showStringID.Click += new EventHandler(this.showColumn_Click); this.showRef.CheckOnClick = true; this.showRef.Name = "showRef"; this.showRef.Size = new System.Drawing.Size(117, 22); this.showRef.Text = "引用"; this.showRef.Click += new EventHandler(this.showColumn_Click); this.showType.CheckOnClick = true; this.showType.Name = "showType"; this.showType.Size = new System.Drawing.Size(117, 22); this.showType.Text = "类型"; this.showType.Click += new EventHandler(this.showColumn_Click); this.showData.CheckOnClick = true; this.showData.Name = "showData"; this.showData.Size = new System.Drawing.Size(117, 22); this.showData.Text = "数据"; this.showData.Click += new EventHandler(this.showColumn_Click); this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Size = new System.Drawing.Size(114, 6); this.addColumn.Name = "addColumn"; this.addColumn.Size = new System.Drawing.Size(117, 22); this.addColumn.Text = "添加属性列"; this.addColumn.Click += new EventHandler(this.addColumn_Click); this.addRefColumn.Name = "addRefColumn"; this.addRefColumn.Size = new System.Drawing.Size(117, 22); this.addRefColumn.Text = "添加列表列"; this.addRefColumn.Click += new EventHandler(this.addRefColumn_Click); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.ClientSize = new System.Drawing.Size(800, 564); base.ControlBox = false; base.Controls.Add(this.splitContainer1); base.Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon"); base.Name = "navigation"; this.Text = "游戏世界"; this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.Panel2.PerformLayout(); ((ISupportInitialize)this.splitContainer1).EndInit(); this.splitContainer1.ResumeLayout(false); this.contextMenuStrip1.ResumeLayout(false); base.ResumeLayout(false); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager componentResourceManager = new System.ComponentModel.ComponentResourceManager(typeof(diplomat)); this.nameBox = new TextBox(); this.nameLabel = new Label(); this.addAssault = new Button(); this.removeAssault = new Button(); this.description = new Label(); this.selection = new Label(); this.splitContainer1 = new SplitContainer(); this.assaultList = new GameDataList(); this.columnHeader1 = new ColumnHeader(); this.splitContainer2 = new SplitContainer(); this.conditionControl1 = new ConditionControl(); this.splitContainer3 = new SplitContainer(); this.splitContainer4 = new SplitContainer(); this.propertyList = new ObjectPropertyBox(); this.referenceList = new ReferenceList(); ((ISupportInitialize)this.splitContainer1).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); ((ISupportInitialize)this.splitContainer2).BeginInit(); this.splitContainer2.Panel1.SuspendLayout(); this.splitContainer2.Panel2.SuspendLayout(); this.splitContainer2.SuspendLayout(); ((ISupportInitialize)this.splitContainer3).BeginInit(); this.splitContainer3.Panel1.SuspendLayout(); this.splitContainer3.Panel2.SuspendLayout(); this.splitContainer3.SuspendLayout(); ((ISupportInitialize)this.splitContainer4).BeginInit(); this.splitContainer4.Panel1.SuspendLayout(); this.splitContainer4.Panel2.SuspendLayout(); this.splitContainer4.SuspendLayout(); base.SuspendLayout(); this.nameBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.nameBox.Location = new Point(46, 6); this.nameBox.Name = "nameBox"; this.nameBox.Size = new System.Drawing.Size(208, 20); this.nameBox.TabIndex = 7; this.nameBox.TextChanged += new EventHandler(this.textBox1_TextChanged); this.nameLabel.AutoSize = true; this.nameLabel.Location = new Point(3, 9); this.nameLabel.Name = "nameLabel"; this.nameLabel.Size = new System.Drawing.Size(38, 13); this.nameLabel.TabIndex = 8; this.nameLabel.Text = "名称:"; this.addAssault.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.addAssault.Location = new Point(110, 32); this.addAssault.Name = "addAssault"; this.addAssault.Size = new System.Drawing.Size(64, 19); this.addAssault.TabIndex = 10; this.addAssault.Text = "新增"; this.addAssault.UseVisualStyleBackColor = true; this.addAssault.Click += new EventHandler(this.addAssault_Click); this.removeAssault.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.removeAssault.Location = new Point(180, 32); this.removeAssault.Name = "removeAssault"; this.removeAssault.Size = new System.Drawing.Size(67, 19); this.removeAssault.TabIndex = 9; this.removeAssault.Text = "删除"; this.removeAssault.UseVisualStyleBackColor = true; this.removeAssault.Click += new EventHandler(this.removeAssault_Click); this.description.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.description.Location = new Point(14, 13); this.description.Name = "description"; this.description.Size = new System.Drawing.Size(496, 51); this.description.TabIndex = 1; this.description.Text = "描述"; this.selection.AutoSize = true; this.selection.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0); this.selection.Location = new Point(3, 0); this.selection.Name = "selection"; this.selection.Size = new System.Drawing.Size(82, 13); this.selection.TabIndex = 0; this.selection.Text = "以选择的项目"; this.splitContainer1.Dock = DockStyle.Fill; this.splitContainer1.Location = new Point(0, 0); this.splitContainer1.Name = "splitContainer1"; this.splitContainer1.Panel1.Controls.Add(this.assaultList); this.splitContainer1.Panel1.Controls.Add(this.addAssault); this.splitContainer1.Panel1.Controls.Add(this.nameBox); this.splitContainer1.Panel1.Controls.Add(this.removeAssault); this.splitContainer1.Panel1.Controls.Add(this.nameLabel); this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); this.splitContainer1.Size = new System.Drawing.Size(772, 594); this.splitContainer1.SplitterDistance = 257; this.splitContainer1.TabIndex = 37; this.assaultList.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.assaultList.Columns.AddRange(new ColumnHeader[] { this.columnHeader1 }); this.assaultList.Filter = null; this.assaultList.FullRowSelect = true; this.assaultList.GridLines = true; this.assaultList.HideSelection = false; this.assaultList.LabelEdit = true; this.assaultList.Location = new Point(3, 57); this.assaultList.MultiSelect = false; this.assaultList.Name = "assaultList"; this.assaultList.Size = new System.Drawing.Size(251, 534); this.assaultList.Source = null; this.assaultList.TabIndex = 0; this.assaultList.UseCompatibleStateImageBehavior = false; this.assaultList.View = View.Details; this.assaultList.VirtualMode = true; this.assaultList.AfterLabelEdit += new LabelEditEventHandler(this.listView1_AfterLabelEdit); this.assaultList.SelectedIndexChanged += new EventHandler(this.listView1_SelectedIndexChanged); this.columnHeader1.Text = "攻击列表"; this.columnHeader1.Width = 238; this.splitContainer2.Dock = DockStyle.Fill; this.splitContainer2.Location = new Point(0, 0); this.splitContainer2.Name = "splitContainer2"; this.splitContainer2.Orientation = Orientation.Horizontal; this.splitContainer2.Panel1.Controls.Add(this.conditionControl1); this.splitContainer2.Panel2.Controls.Add(this.splitContainer3); this.splitContainer2.Size = new System.Drawing.Size(511, 594); this.splitContainer2.SplitterDistance = 190; this.splitContainer2.TabIndex = 0; this.conditionControl1.CurrentLine = null; this.conditionControl1.Dock = DockStyle.Fill; this.conditionControl1.Item = null; this.conditionControl1.Location = new Point(0, 0); this.conditionControl1.Name = "conditionControl1"; this.conditionControl1.Size = new System.Drawing.Size(511, 190); this.conditionControl1.TabIndex = 35; this.splitContainer3.Dock = DockStyle.Fill; this.splitContainer3.Location = new Point(0, 0); this.splitContainer3.Name = "splitContainer3"; this.splitContainer3.Orientation = Orientation.Horizontal; this.splitContainer3.Panel1.Controls.Add(this.splitContainer4); this.splitContainer3.Panel2.Controls.Add(this.description); this.splitContainer3.Panel2.Controls.Add(this.selection); this.splitContainer3.Size = new System.Drawing.Size(511, 400); this.splitContainer3.SplitterDistance = 331; this.splitContainer3.TabIndex = 0; this.splitContainer4.Dock = DockStyle.Fill; this.splitContainer4.Location = new Point(0, 0); this.splitContainer4.Name = "splitContainer4"; this.splitContainer4.Panel1.Controls.Add(this.propertyList); this.splitContainer4.Panel2.Controls.Add(this.referenceList); this.splitContainer4.Size = new System.Drawing.Size(511, 331); this.splitContainer4.SplitterDistance = 259; this.splitContainer4.TabIndex = 0; this.propertyList.DescriptionControl = this.description; this.propertyList.Dock = DockStyle.Fill; this.propertyList.Item = null; this.propertyList.Location = new Point(0, 0); this.propertyList.Name = "propertyList"; this.propertyList.SelectionControl = this.selection; this.propertyList.ShowDescription = false; this.propertyList.Size = new System.Drawing.Size(259, 331); this.propertyList.TabIndex = 36; this.referenceList.DescriptionControl = this.description; this.referenceList.Dock = DockStyle.Fill; this.referenceList.Exclusions = (ArrayList)componentResourceManager.GetObject("referenceList.Exclusions"); this.referenceList.Location = new Point(0, 0); this.referenceList.Name = "referenceList"; this.referenceList.SelectionControl = this.selection; this.referenceList.ShowDescription = false; this.referenceList.Size = new System.Drawing.Size(248, 331); this.referenceList.TabIndex = 0; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.ClientSize = new System.Drawing.Size(772, 594); base.Controls.Add(this.splitContainer1); base.Name = "diplomat"; base.ShowIcon = false; this.Text = "外交官和突击小队"; this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel1.PerformLayout(); this.splitContainer1.Panel2.ResumeLayout(false); ((ISupportInitialize)this.splitContainer1).EndInit(); this.splitContainer1.ResumeLayout(false); this.splitContainer2.Panel1.ResumeLayout(false); this.splitContainer2.Panel2.ResumeLayout(false); ((ISupportInitialize)this.splitContainer2).EndInit(); this.splitContainer2.ResumeLayout(false); this.splitContainer3.Panel1.ResumeLayout(false); this.splitContainer3.Panel2.ResumeLayout(false); this.splitContainer3.Panel2.PerformLayout(); ((ISupportInitialize)this.splitContainer3).EndInit(); this.splitContainer3.ResumeLayout(false); this.splitContainer4.Panel1.ResumeLayout(false); this.splitContainer4.Panel2.ResumeLayout(false); ((ISupportInitialize)this.splitContainer4).EndInit(); this.splitContainer4.ResumeLayout(false); base.ResumeLayout(false); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.listView1 = new GameDataList(); this.columnHeader2 = new ColumnHeader(); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.openToolStripMenuItem = new ToolStripMenuItem(); this.bOk = new Button(); this.bCancel = new Button(); this.filter = new TextBox(); this.contextMenuStrip1.SuspendLayout(); base.SuspendLayout(); this.listView1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.listView1.Columns.AddRange(new ColumnHeader[] { this.columnHeader2 }); this.listView1.ContextMenuStrip = this.contextMenuStrip1; this.listView1.Filter = null; this.listView1.FullRowSelect = true; this.listView1.HideSelection = false; this.listView1.Location = new Point(0, 0); this.listView1.Name = "listView1"; this.listView1.Size = new System.Drawing.Size(308, 435); this.listView1.Source = null; this.listView1.TabIndex = 2; this.listView1.UseCompatibleStateImageBehavior = false; this.listView1.View = View.Details; this.listView1.VirtualMode = true; this.listView1.SelectedIndexChanged += new EventHandler(this.listView1_SelectedIndexChanged); this.columnHeader2.Text = "名称"; this.columnHeader2.Width = 241; this.contextMenuStrip1.Items.AddRange(new ToolStripItem[] { this.openToolStripMenuItem }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new System.Drawing.Size(104, 26); this.openToolStripMenuItem.Name = "openToolStripMenuItem"; this.openToolStripMenuItem.Size = new System.Drawing.Size(103, 22); this.openToolStripMenuItem.Text = "打开"; this.openToolStripMenuItem.Click += new EventHandler(this.openItem_Click); this.bOk.Anchor = AnchorStyles.Bottom; this.bOk.DialogResult = System.Windows.Forms.DialogResult.OK; this.bOk.Location = new Point(67, 460); this.bOk.Name = "bOk"; this.bOk.Size = new System.Drawing.Size(75, 23); this.bOk.TabIndex = 3; this.bOk.Text = "好的"; this.bOk.UseVisualStyleBackColor = true; this.bOk.Click += new EventHandler(this.bOk_Click); this.bCancel.Anchor = AnchorStyles.Bottom; this.bCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.bCancel.Location = new Point(165, 460); this.bCancel.Name = "bCancel"; this.bCancel.Size = new System.Drawing.Size(75, 23); this.bCancel.TabIndex = 4; this.bCancel.Text = "取消"; this.bCancel.UseVisualStyleBackColor = true; this.filter.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.filter.Location = new Point(0, 436); this.filter.Margin = new System.Windows.Forms.Padding(2); this.filter.Name = "filter"; this.filter.Size = new System.Drawing.Size(308, 20); this.filter.TabIndex = 1; this.filter.TextChanged += new EventHandler(this.filter_TextChanged); base.AcceptButton = this.bOk; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoValidate = System.Windows.Forms.AutoValidate.EnableAllowFocusChange; base.CancelButton = this.bCancel; base.ClientSize = new System.Drawing.Size(307, 494); base.ControlBox = false; base.Controls.Add(this.filter); base.Controls.Add(this.bCancel); base.Controls.Add(this.bOk); base.Controls.Add(this.listView1); base.Name = "ItemDialog"; base.StartPosition = FormStartPosition.CenterParent; this.Text = "选择要引用的项"; this.contextMenuStrip1.ResumeLayout(false); base.ResumeLayout(false); base.PerformLayout(); }