コード例 #1
0
 private void InitializeComponent()
 {
     this.components          = new System.ComponentModel.Container();
     this.tree                = new ChangeListTree(this.components);
     this.contextMenu         = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.openItem            = new ToolStripMenuItem();
     this.revertItem          = new ToolStripMenuItem();
     this.toolStripSeparator1 = new ToolStripSeparator();
     this.showNew             = new ToolStripMenuItem();
     this.showChanged         = new ToolStripMenuItem();
     this.showDeleted         = new ToolStripMenuItem();
     this.filter              = new TextBox();
     this.contextMenu.SuspendLayout();
     base.SuspendLayout();
     this.tree.Anchor           = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.tree.ContextMenuStrip = this.contextMenu;
     this.tree.Filter           = null;
     this.tree.FullRowSelect    = true;
     this.tree.GameData         = null;
     this.tree.Location         = new Point(2, 2);
     this.tree.Name             = "tree";
     this.tree.Nodes            = null;
     this.tree.OwnerDraw        = true;
     this.tree.ShowChanged      = true;
     this.tree.ShowDeleted      = true;
     this.tree.ShowNew          = true;
     this.tree.Size             = new System.Drawing.Size(443, 550);
     this.tree.SortKey          = null;
     this.tree.TabIndex         = 0;
     this.tree.UseCompatibleStateImageBehavior = false;
     this.tree.View        = View.Details;
     this.tree.VirtualMode = true;
     this.contextMenu.Items.AddRange(new ToolStripItem[] { this.openItem, this.revertItem, this.toolStripSeparator1, this.showNew, this.showChanged, this.showDeleted });
     this.contextMenu.Name         = "contextMenu";
     this.contextMenu.Size         = new System.Drawing.Size(155, 142);
     this.contextMenu.Opening     += new CancelEventHandler(this.contextMenu_Opening);
     this.openItem.Name            = "openItem";
     this.openItem.Size            = new System.Drawing.Size(154, 22);
     this.openItem.Text            = "打开";
     this.openItem.Click          += new EventHandler(this.openItem_Click);
     this.revertItem.Name          = "revertItem";
     this.revertItem.Size          = new System.Drawing.Size(154, 22);
     this.revertItem.Text          = "恢复";
     this.revertItem.Click        += new EventHandler(this.revertItem_Click);
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(151, 6);
     this.showNew.Checked          = true;
     this.showNew.CheckOnClick     = true;
     this.showNew.CheckState       = CheckState.Checked;
     this.showNew.Name             = "showNew";
     this.showNew.Size             = new System.Drawing.Size(154, 22);
     this.showNew.Text             = "新项目";
     this.showNew.Click           += new EventHandler(this.viewOptions_Click);
     this.showChanged.Checked      = true;
     this.showChanged.CheckOnClick = true;
     this.showChanged.CheckState   = CheckState.Checked;
     this.showChanged.Name         = "showChanged";
     this.showChanged.Size         = new System.Drawing.Size(154, 22);
     this.showChanged.Text         = "已改变的项目";
     this.showChanged.Click       += new EventHandler(this.viewOptions_Click);
     this.showDeleted.Checked      = true;
     this.showDeleted.CheckOnClick = true;
     this.showDeleted.CheckState   = CheckState.Checked;
     this.showDeleted.Name         = "showDeleted";
     this.showDeleted.Size         = new System.Drawing.Size(154, 22);
     this.showDeleted.Text         = "已删除的项目";
     this.showDeleted.Click       += new EventHandler(this.viewOptions_Click);
     this.filter.Anchor            = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.filter.Location          = new Point(2, 554);
     this.filter.Name         = "filter";
     this.filter.Size         = new System.Drawing.Size(443, 20);
     this.filter.TabIndex     = 1;
     this.filter.TextChanged += new EventHandler(this.filter_TextChanged);
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize          = new System.Drawing.Size(447, 575);
     base.Controls.Add(this.filter);
     base.Controls.Add(this.tree);
     base.Name     = "ChangeList";
     base.ShowIcon = false;
     this.Text     = "变更列表";
     this.contextMenu.ResumeLayout(false);
     base.ResumeLayout(false);
     base.PerformLayout();
 }
コード例 #2
0
 private void InitializeComponent()
 {
     this.components          = new System.ComponentModel.Container();
     this.modBox              = new ComboBox();
     this.label1              = new Label();
     this.mergeButton         = new Button();
     this.cancelButton        = new Button();
     this.contextMenu         = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.selectAll           = new ToolStripMenuItem();
     this.selectNone          = new ToolStripMenuItem();
     this.toolStripSeparator1 = new ToolStripSeparator();
     this.selectRecursive     = new ToolStripMenuItem();
     this.selectNoneRecursive = new ToolStripMenuItem();
     this.toolStripSeparator2 = new ToolStripSeparator();
     this.fixReferences       = new ToolStripMenuItem();
     this.tree      = new ChangeListTree(this.components);
     this.anyFile   = new Button();
     this.toolTip   = new ToolTip(this.components);
     this.leveldata = new CheckBox();
     this.contextMenu.SuspendLayout();
     base.SuspendLayout();
     this.modBox.Anchor            = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
     this.modBox.DropDownStyle     = ComboBoxStyle.DropDownList;
     this.modBox.FormattingEnabled = true;
     this.modBox.Location          = new Point(122, 2);
     this.modBox.Name     = "modBox";
     this.modBox.Size     = new System.Drawing.Size(261, 21);
     this.modBox.TabIndex = 1;
     this.toolTip.SetToolTip(this.modBox, "选择mod以加载更改");
     this.modBox.SelectedIndexChanged += new EventHandler(this.modBox_SelectedIndexChanged);
     this.label1.AutoSize              = true;
     this.label1.Location              = new Point(0, 5);
     this.label1.Name                          = "label1";
     this.label1.Size                          = new System.Drawing.Size(116, 13);
     this.label1.TabIndex                      = 2;
     this.label1.Text                          = "从mod添加更改";
     this.mergeButton.Anchor                   = AnchorStyles.Bottom | AnchorStyles.Right;
     this.mergeButton.DialogResult             = System.Windows.Forms.DialogResult.OK;
     this.mergeButton.Location                 = new Point(323, 236);
     this.mergeButton.Name                     = "mergeButton";
     this.mergeButton.Size                     = new System.Drawing.Size(75, 23);
     this.mergeButton.TabIndex                 = 4;
     this.mergeButton.Text                     = "合并";
     this.mergeButton.UseVisualStyleBackColor  = true;
     this.mergeButton.Click                   += new EventHandler(this.mergeButton_Click);
     this.cancelButton.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
     this.cancelButton.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this.cancelButton.Location                = new Point(242, 236);
     this.cancelButton.Name                    = "cancelButton";
     this.cancelButton.Size                    = new System.Drawing.Size(75, 23);
     this.cancelButton.TabIndex                = 5;
     this.cancelButton.Text                    = "从mod添加更改";
     this.cancelButton.UseVisualStyleBackColor = true;
     this.contextMenu.Items.AddRange(new ToolStripItem[] { this.selectAll, this.selectNone, this.toolStripSeparator1, this.selectRecursive, this.selectNoneRecursive, this.toolStripSeparator2, this.fixReferences });
     this.contextMenu.Name           = "contextMenu";
     this.contextMenu.Size           = new System.Drawing.Size(172, 126);
     this.selectAll.Name             = "selectAll";
     this.selectAll.Size             = new System.Drawing.Size(171, 22);
     this.selectAll.Text             = "选择所有";
     this.selectAll.Click           += new EventHandler(this.selectAll_Click);
     this.selectNone.Name            = "selectNone";
     this.selectNone.Size            = new System.Drawing.Size(171, 22);
     this.selectNone.Text            = "&反向选择所有";
     this.selectNone.Click          += new EventHandler(this.selectNone_Click);
     this.toolStripSeparator1.Name   = "toolStripSeparator1";
     this.toolStripSeparator1.Size   = new System.Drawing.Size(168, 6);
     this.selectRecursive.Name       = "selectRecursive";
     this.selectRecursive.Size       = new System.Drawing.Size(171, 22);
     this.selectRecursive.Text       = "选择&递归";
     this.selectRecursive.Click     += new EventHandler(this.selectRecursive_Click);
     this.selectNoneRecursive.Name   = "selectNoneRecursive";
     this.selectNoneRecursive.Size   = new System.Drawing.Size(171, 22);
     this.selectNoneRecursive.Text   = "取消选择 &递归";
     this.selectNoneRecursive.Click += new EventHandler(this.selectNoneRecursive_Click);
     this.toolStripSeparator2.Name   = "toolStripSeparator2";
     this.toolStripSeparator2.Size   = new System.Drawing.Size(168, 6);
     this.fixReferences.Name         = "fixReferences";
     this.fixReferences.Size         = new System.Drawing.Size(171, 22);
     this.fixReferences.Text         = "修复引用";
     this.fixReferences.Click       += new EventHandler(this.fixReferences_Click);
     this.tree.Anchor           = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.tree.ContextMenuStrip = this.contextMenu;
     this.tree.Filter           = null;
     this.tree.FullRowSelect    = true;
     this.tree.GameData         = null;
     this.tree.Location         = new Point(3, 29);
     this.tree.Name             = "tree";
     this.tree.Nodes            = null;
     this.tree.OwnerDraw        = true;
     this.tree.ShowChanged      = true;
     this.tree.ShowDeleted      = true;
     this.tree.ShowNew          = true;
     this.tree.Size             = new System.Drawing.Size(406, 201);
     this.tree.SortKey          = null;
     this.tree.TabIndex         = 0;
     this.tree.UseCompatibleStateImageBehavior = false;
     this.tree.View        = View.Details;
     this.tree.VirtualMode = true;
     this.anyFile.Anchor   = AnchorStyles.Top | AnchorStyles.Right;
     this.anyFile.Location = new Point(383, 1);
     this.anyFile.Name     = "anyFile";
     this.anyFile.Size     = new System.Drawing.Size(26, 23);
     this.anyFile.TabIndex = 6;
     this.anyFile.Text     = "*";
     this.toolTip.SetToolTip(this.anyFile, "选择要加载更改的文件");
     this.anyFile.UseVisualStyleBackColor = true;
     this.anyFile.Click     += new EventHandler(this.anyFile_Click);
     this.leveldata.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left;
     this.leveldata.AutoSize = true;
     this.leveldata.Location = new Point(12, 236);
     this.leveldata.Name     = "leveldata";
     this.leveldata.Size     = new System.Drawing.Size(111, 17);
     this.leveldata.TabIndex = 7;
     this.leveldata.Text     = "合并地图数据";
     this.leveldata.UseVisualStyleBackColor = true;
     this.leveldata.CheckedChanged         += new EventHandler(this.leveldata_CheckedChanged);
     base.AcceptButton        = this.mergeButton;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     base.CancelButton        = this.cancelButton;
     base.ClientSize          = new System.Drawing.Size(410, 266);
     base.Controls.Add(this.leveldata);
     base.Controls.Add(this.anyFile);
     base.Controls.Add(this.cancelButton);
     base.Controls.Add(this.mergeButton);
     base.Controls.Add(this.label1);
     base.Controls.Add(this.modBox);
     base.Controls.Add(this.tree);
     base.Name     = "MergeDialog";
     base.ShowIcon = false;
     this.Text     = "合并MOD";
     this.contextMenu.ResumeLayout(false);
     base.ResumeLayout(false);
     base.PerformLayout();
 }