From bd016b855f7726767dd421efce297f5bbbc3c0af Mon Sep 17 00:00:00 2001 From: huiyadanli Date: Sun, 5 Jan 2020 01:16:15 +0800 Subject: [PATCH] =?UTF-8?q?[+]=20=E6=B7=BB=E5=8A=A0=E4=BA=86=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E7=9A=84=E6=8C=87=E5=90=91=EF=BC=8C=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E4=BA=86=E9=AB=98=E7=BA=A7=E5=8A=9F=E8=83=BD=E7=9A=84=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=EF=BC=88=E6=9A=82=E6=97=B6=E4=B8=8D=E5=BC=80=E5=8F=91?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RevokeMsgPatcher/FormMain.Designer.cs | 39 +++--- RevokeMsgPatcher/FormMain.cs | 40 ++++++ .../Forms/FormPatchInfo.Designer.cs | 93 ++++++++++++++ RevokeMsgPatcher/Forms/FormPatchInfo.cs | 20 +++ RevokeMsgPatcher/Forms/FormPatchInfo.resx | 120 ++++++++++++++++++ RevokeMsgPatcher/RevokeMsgPatcher.csproj | 9 ++ 6 files changed, 306 insertions(+), 15 deletions(-) create mode 100644 RevokeMsgPatcher/Forms/FormPatchInfo.Designer.cs create mode 100644 RevokeMsgPatcher/Forms/FormPatchInfo.cs create mode 100644 RevokeMsgPatcher/Forms/FormPatchInfo.resx diff --git a/RevokeMsgPatcher/FormMain.Designer.cs b/RevokeMsgPatcher/FormMain.Designer.cs index 949b4f8..77715c1 100644 --- a/RevokeMsgPatcher/FormMain.Designer.cs +++ b/RevokeMsgPatcher/FormMain.Designer.cs @@ -46,7 +46,7 @@ this.rbtQQLite = new System.Windows.Forms.RadioButton(); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.高级ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.特征码防撤回ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.特征码防撤回强制ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.手动输入补丁信息ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.帮助ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.支持版本ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -231,23 +231,26 @@ // 高级ToolStripMenuItem // this.高级ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.特征码防撤回ToolStripMenuItem, + this.特征码防撤回强制ToolStripMenuItem, this.手动输入补丁信息ToolStripMenuItem}); this.高级ToolStripMenuItem.Name = "高级ToolStripMenuItem"; this.高级ToolStripMenuItem.Size = new System.Drawing.Size(44, 21); this.高级ToolStripMenuItem.Text = "高级"; + this.高级ToolStripMenuItem.Visible = false; // - // 特征码防撤回ToolStripMenuItem + // 特征码防撤回强制ToolStripMenuItem // - this.特征码防撤回ToolStripMenuItem.Name = "特征码防撤回ToolStripMenuItem"; - this.特征码防撤回ToolStripMenuItem.Size = new System.Drawing.Size(172, 22); - this.特征码防撤回ToolStripMenuItem.Text = "特征码防撤回"; + this.特征码防撤回强制ToolStripMenuItem.Name = "特征码防撤回强制ToolStripMenuItem"; + this.特征码防撤回强制ToolStripMenuItem.Size = new System.Drawing.Size(196, 22); + this.特征码防撤回强制ToolStripMenuItem.Text = "特征码防撤回(强制)"; + this.特征码防撤回强制ToolStripMenuItem.Click += new System.EventHandler(this.特征码防撤回强制ToolStripMenuItem_Click); // // 手动输入补丁信息ToolStripMenuItem // this.手动输入补丁信息ToolStripMenuItem.Name = "手动输入补丁信息ToolStripMenuItem"; - this.手动输入补丁信息ToolStripMenuItem.Size = new System.Drawing.Size(172, 22); + this.手动输入补丁信息ToolStripMenuItem.Size = new System.Drawing.Size(196, 22); this.手动输入补丁信息ToolStripMenuItem.Text = "手动输入补丁信息"; + this.手动输入补丁信息ToolStripMenuItem.Click += new System.EventHandler(this.手动输入补丁信息ToolStripMenuItem_Click); // // 帮助ToolStripMenuItem // @@ -263,26 +266,30 @@ // 支持版本ToolStripMenuItem // this.支持版本ToolStripMenuItem.Name = "支持版本ToolStripMenuItem"; - this.支持版本ToolStripMenuItem.Size = new System.Drawing.Size(136, 22); + this.支持版本ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.支持版本ToolStripMenuItem.Text = "支持版本"; + this.支持版本ToolStripMenuItem.Click += new System.EventHandler(this.支持版本ToolStripMenuItem_Click); // // 常见问题ToolStripMenuItem // this.常见问题ToolStripMenuItem.Name = "常见问题ToolStripMenuItem"; - this.常见问题ToolStripMenuItem.Size = new System.Drawing.Size(136, 22); + this.常见问题ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.常见问题ToolStripMenuItem.Text = "常见问题"; + this.常见问题ToolStripMenuItem.Click += new System.EventHandler(this.常见问题ToolStripMenuItem_Click); // // 防撤回原理ToolStripMenuItem // this.防撤回原理ToolStripMenuItem.Name = "防撤回原理ToolStripMenuItem"; - this.防撤回原理ToolStripMenuItem.Size = new System.Drawing.Size(136, 22); + this.防撤回原理ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.防撤回原理ToolStripMenuItem.Text = "防撤回原理"; + this.防撤回原理ToolStripMenuItem.Click += new System.EventHandler(this.防撤回原理ToolStripMenuItem_Click); // // 完整文档ToolStripMenuItem // this.完整文档ToolStripMenuItem.Name = "完整文档ToolStripMenuItem"; - this.完整文档ToolStripMenuItem.Size = new System.Drawing.Size(136, 22); + this.完整文档ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.完整文档ToolStripMenuItem.Text = "完整文档"; + this.完整文档ToolStripMenuItem.Click += new System.EventHandler(this.完整文档ToolStripMenuItem_Click); // // 关于ToolStripMenuItem // @@ -296,14 +303,16 @@ // 作者ToolStripMenuItem // this.作者ToolStripMenuItem.Name = "作者ToolStripMenuItem"; - this.作者ToolStripMenuItem.Size = new System.Drawing.Size(124, 22); - this.作者ToolStripMenuItem.Text = "作者"; + this.作者ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.作者ToolStripMenuItem.Text = "关于"; + this.作者ToolStripMenuItem.Click += new System.EventHandler(this.关于ToolStripMenuItem_Click); // // 主页ToolStripMenuItem // this.主页ToolStripMenuItem.Name = "主页ToolStripMenuItem"; - this.主页ToolStripMenuItem.Size = new System.Drawing.Size(124, 22); + this.主页ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.主页ToolStripMenuItem.Text = "软件主页"; + this.主页ToolStripMenuItem.Click += new System.EventHandler(this.主页ToolStripMenuItem_Click); // // FormMain // @@ -366,8 +375,8 @@ private System.Windows.Forms.ToolStripMenuItem 常见问题ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem 防撤回原理ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem 完整文档ToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem 特征码防撤回ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem 手动输入补丁信息ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem 特征码防撤回强制ToolStripMenuItem; } } diff --git a/RevokeMsgPatcher/FormMain.cs b/RevokeMsgPatcher/FormMain.cs index 6325746..f59906d 100644 --- a/RevokeMsgPatcher/FormMain.cs +++ b/RevokeMsgPatcher/FormMain.cs @@ -344,5 +344,45 @@ namespace RevokeMsgPatcher } } } + + private void 关于ToolStripMenuItem_Click(object sender, EventArgs e) + { + MessageBox.Show("本程序仅供学习交流,严禁用于商业用途。\n十六进制编辑器使用的修改数据集收集自网络。\n作者:huiyadanli", "关于本软件"); + } + + private void 主页ToolStripMenuItem_Click(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher"); + } + + private void 支持版本ToolStripMenuItem_Click(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher/wiki/%E7%89%88%E6%9C%AC%E6%94%AF%E6%8C%81"); + } + + private void 常见问题ToolStripMenuItem_Click(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher/wiki#%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98"); + } + + private void 防撤回原理ToolStripMenuItem_Click(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher/wiki#%E5%8E%9F%E7%90%86"); + } + + private void 完整文档ToolStripMenuItem_Click(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher/wiki"); + } + + private void 特征码防撤回强制ToolStripMenuItem_Click(object sender, EventArgs e) + { + MessageBox.Show("作者正在考虑是否要加上这个功能", "强制使用特征码防撤回"); + } + + private void 手动输入补丁信息ToolStripMenuItem_Click(object sender, EventArgs e) + { + MessageBox.Show("作者正在考虑是否要加上这个功能,该功能可能有安全风险,暂时不加入", "手动输入补丁信息"); + } } } diff --git a/RevokeMsgPatcher/Forms/FormPatchInfo.Designer.cs b/RevokeMsgPatcher/Forms/FormPatchInfo.Designer.cs new file mode 100644 index 0000000..f4fd3c8 --- /dev/null +++ b/RevokeMsgPatcher/Forms/FormPatchInfo.Designer.cs @@ -0,0 +1,93 @@ +namespace RevokeMsgPatcher.Forms +{ + partial class FormPatchInfo + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.rtbPatchInfo = new System.Windows.Forms.RichTextBox(); + this.btnOK = new System.Windows.Forms.Button(); + this.btnCancel = new System.Windows.Forms.Button(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // rtbPatchInfo + // + this.rtbPatchInfo.Location = new System.Drawing.Point(12, 45); + this.rtbPatchInfo.Name = "rtbPatchInfo"; + this.rtbPatchInfo.Size = new System.Drawing.Size(489, 158); + this.rtbPatchInfo.TabIndex = 0; + this.rtbPatchInfo.Text = ""; + // + // btnOK + // + this.btnOK.Location = new System.Drawing.Point(345, 209); + this.btnOK.Name = "btnOK"; + this.btnOK.Size = new System.Drawing.Size(75, 23); + this.btnOK.TabIndex = 1; + this.btnOK.Text = "确定"; + this.btnOK.UseVisualStyleBackColor = true; + // + // btnCancel + // + this.btnCancel.Location = new System.Drawing.Point(426, 209); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.TabIndex = 2; + this.btnCancel.Text = "取消"; + this.btnCancel.UseVisualStyleBackColor = true; + // + // label1 + // + this.label1.Location = new System.Drawing.Point(12, 9); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(489, 33); + this.label1.TabIndex = 3; + this.label1.Text = "注意:请勿随意输入补丁信息,错误的补丁信息将导致本软件无法正常使用。在被恶意情况下可以修改/破坏系统任意位置文件"; + // + // FormPatchInfo + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(513, 241); + this.Controls.Add(this.label1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnOK); + this.Controls.Add(this.rtbPatchInfo); + this.Name = "FormPatchInfo"; + this.Text = "请输入补丁信息"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.RichTextBox rtbPatchInfo; + private System.Windows.Forms.Button btnOK; + private System.Windows.Forms.Button btnCancel; + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/RevokeMsgPatcher/Forms/FormPatchInfo.cs b/RevokeMsgPatcher/Forms/FormPatchInfo.cs new file mode 100644 index 0000000..6ac909b --- /dev/null +++ b/RevokeMsgPatcher/Forms/FormPatchInfo.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace RevokeMsgPatcher.Forms +{ + public partial class FormPatchInfo : Form + { + public FormPatchInfo() + { + InitializeComponent(); + } + } +} diff --git a/RevokeMsgPatcher/Forms/FormPatchInfo.resx b/RevokeMsgPatcher/Forms/FormPatchInfo.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RevokeMsgPatcher/Forms/FormPatchInfo.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RevokeMsgPatcher/RevokeMsgPatcher.csproj b/RevokeMsgPatcher/RevokeMsgPatcher.csproj index dac9c81..151ce23 100644 --- a/RevokeMsgPatcher/RevokeMsgPatcher.csproj +++ b/RevokeMsgPatcher/RevokeMsgPatcher.csproj @@ -57,6 +57,12 @@ FormMain.cs + + Form + + + FormPatchInfo.cs + @@ -84,6 +90,9 @@ FormMain.cs + + FormPatchInfo.cs + ResXFileCodeGenerator Resources.Designer.cs