📄 crightkeymenu.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace XP界面优化精灵
{
/// <summary>
/// CRightKeyMenu 的摘要说明。
/// </summary>
public class CRightKeyMenu : System.Windows.Forms.Form
{
private System.Windows.Forms.ColumnHeader columnHeader1;
private System.Windows.Forms.ColumnHeader columnHeader2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TabPage tp_2;
private System.Windows.Forms.TabPage tp_1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.ColumnHeader columnHeader3;
private System.Windows.Forms.ColumnHeader columnHeader4;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.ComboBox cob_1;
private System.Windows.Forms.ColumnHeader columnHeader5;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
private System.Windows.Forms.TabControl tabControl;
public static int tab=0;
private System.Windows.Forms.Label lb_1;
private System.Windows.Forms.Button bn_selectpath1;
private System.Windows.Forms.TextBox tb_2;
private System.Windows.Forms.TextBox tb_1;
private System.Windows.Forms.ListView fileRKMenuList;
private System.Windows.Forms.Button bn_selectpath2;
private System.Windows.Forms.TextBox tb_4;
private System.Windows.Forms.TextBox tb_3;
private System.Windows.Forms.ListView DDRKMenuList;
private System.Windows.Forms.Button bn_remove1;
private System.Windows.Forms.Button bn_add1;
private System.Windows.Forms.Button bn_remove2;
private System.Windows.Forms.Button bn_add2;
private System.Windows.Forms.RadioButton rb_2;
private System.Windows.Forms.RadioButton rb_1;
public static bool isspecific=false;
private System.Windows.Forms.RadioButton rb_4;
private System.Windows.Forms.RadioButton rb_3;
private string param="";
public CRightKeyMenu()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CRightKeyMenu));
this.tabControl = new System.Windows.Forms.TabControl();
this.tp_1 = new System.Windows.Forms.TabPage();
this.cob_1 = new System.Windows.Forms.ComboBox();
this.lb_1 = new System.Windows.Forms.Label();
this.bn_remove1 = new System.Windows.Forms.Button();
this.bn_add1 = new System.Windows.Forms.Button();
this.bn_selectpath1 = new System.Windows.Forms.Button();
this.tb_2 = new System.Windows.Forms.TextBox();
this.tb_1 = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.fileRKMenuList = new System.Windows.Forms.ListView();
this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
this.label6 = new System.Windows.Forms.Label();
this.tp_2 = new System.Windows.Forms.TabPage();
this.bn_remove2 = new System.Windows.Forms.Button();
this.bn_add2 = new System.Windows.Forms.Button();
this.bn_selectpath2 = new System.Windows.Forms.Button();
this.tb_4 = new System.Windows.Forms.TextBox();
this.tb_3 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.DDRKMenuList = new System.Windows.Forms.ListView();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
this.label1 = new System.Windows.Forms.Label();
this.rb_2 = new System.Windows.Forms.RadioButton();
this.rb_1 = new System.Windows.Forms.RadioButton();
this.rb_4 = new System.Windows.Forms.RadioButton();
this.rb_3 = new System.Windows.Forms.RadioButton();
this.tabControl.SuspendLayout();
this.tp_1.SuspendLayout();
this.tp_2.SuspendLayout();
this.SuspendLayout();
//
// tabControl
//
this.tabControl.Controls.Add(this.tp_1);
this.tabControl.Controls.Add(this.tp_2);
this.tabControl.Location = new System.Drawing.Point(6, 6);
this.tabControl.Name = "tabControl";
this.tabControl.SelectedIndex = 0;
this.tabControl.Size = new System.Drawing.Size(372, 332);
this.tabControl.TabIndex = 2;
this.tabControl.SelectedIndexChanged += new System.EventHandler(this.tabControl_SelectedIndexChanged);
//
// tp_1
//
this.tp_1.BackColor = System.Drawing.Color.White;
this.tp_1.Controls.Add(this.cob_1);
this.tp_1.Controls.Add(this.lb_1);
this.tp_1.Controls.Add(this.bn_remove1);
this.tp_1.Controls.Add(this.bn_add1);
this.tp_1.Controls.Add(this.bn_selectpath1);
this.tp_1.Controls.Add(this.tb_2);
this.tp_1.Controls.Add(this.tb_1);
this.tp_1.Controls.Add(this.label4);
this.tp_1.Controls.Add(this.label5);
this.tp_1.Controls.Add(this.fileRKMenuList);
this.tp_1.Controls.Add(this.label6);
this.tp_1.Controls.Add(this.rb_2);
this.tp_1.Controls.Add(this.rb_1);
this.tp_1.Location = new System.Drawing.Point(4, 21);
this.tp_1.Name = "tp_1";
this.tp_1.Size = new System.Drawing.Size(364, 307);
this.tp_1.TabIndex = 1;
this.tp_1.Text = "自定义文件右键菜单";
//
// cob_1
//
this.cob_1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cob_1.Location = new System.Drawing.Point(232, 214);
this.cob_1.Name = "cob_1";
this.cob_1.Size = new System.Drawing.Size(121, 20);
this.cob_1.Sorted = true;
this.cob_1.TabIndex = 21;
//
// lb_1
//
this.lb_1.Location = new System.Drawing.Point(12, 220);
this.lb_1.Name = "lb_1";
this.lb_1.Size = new System.Drawing.Size(162, 23);
this.lb_1.TabIndex = 20;
this.lb_1.Text = "添加该文件类型的右键菜单:";
//
// bn_remove1
//
this.bn_remove1.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.bn_remove1.Location = new System.Drawing.Point(190, 252);
this.bn_remove1.Name = "bn_remove1";
this.bn_remove1.TabIndex = 19;
this.bn_remove1.Text = "删除";
this.bn_remove1.Click += new System.EventHandler(this.bn_remove1_Click);
//
// bn_add1
//
this.bn_add1.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.bn_add1.Location = new System.Drawing.Point(88, 252);
this.bn_add1.Name = "bn_add1";
this.bn_add1.TabIndex = 18;
this.bn_add1.Text = "添加";
this.bn_add1.Click += new System.EventHandler(this.bn_add1_Click);
//
// bn_selectpath1
//
this.bn_selectpath1.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.bn_selectpath1.Location = new System.Drawing.Point(324, 166);
this.bn_selectpath1.Name = "bn_selectpath1";
this.bn_selectpath1.Size = new System.Drawing.Size(26, 16);
this.bn_selectpath1.TabIndex = 17;
this.bn_selectpath1.Text = "...";
this.bn_selectpath1.Click += new System.EventHandler(this.bn_selectpath1_Click);
//
// tb_2
//
this.tb_2.Location = new System.Drawing.Point(122, 164);
this.tb_2.Name = "tb_2";
this.tb_2.ReadOnly = true;
this.tb_2.Size = new System.Drawing.Size(230, 21);
this.tb_2.TabIndex = 16;
this.tb_2.Text = "";
//
// tb_1
//
this.tb_1.Location = new System.Drawing.Point(122, 140);
this.tb_1.Name = "tb_1";
this.tb_1.Size = new System.Drawing.Size(230, 21);
this.tb_1.TabIndex = 15;
this.tb_1.Text = "";
//
// label4
//
this.label4.Location = new System.Drawing.Point(12, 168);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(122, 23);
this.label4.TabIndex = 14;
this.label4.Text = "右键菜单执行命令:";
//
// label5
//
this.label5.Location = new System.Drawing.Point(12, 144);
this.label5.Name = "label5";
this.label5.TabIndex = 13;
this.label5.Text = "右键菜单名称:";
//
// fileRKMenuList
//
this.fileRKMenuList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader5,
this.columnHeader3,
this.columnHeader4});
this.fileRKMenuList.FullRowSelect = true;
this.fileRKMenuList.GridLines = true;
this.fileRKMenuList.Location = new System.Drawing.Point(12, 34);
this.fileRKMenuList.Name = "fileRKMenuList";
this.fileRKMenuList.Size = new System.Drawing.Size(340, 97);
this.fileRKMenuList.TabIndex = 12;
this.fileRKMenuList.View = System.Windows.Forms.View.Details;
//
// columnHeader5
//
this.columnHeader5.Text = "文件类型";
//
// columnHeader3
//
this.columnHeader3.Text = "右键名称";
this.columnHeader3.Width = 96;
//
// columnHeader4
//
this.columnHeader4.Text = "执行命令";
this.columnHeader4.Width = 163;
//
// label6
//
this.label6.Location = new System.Drawing.Point(8, 16);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(152, 18);
this.label6.TabIndex = 11;
this.label6.Text = "己经定义的右键菜单命令:";
//
// tp_2
//
this.tp_2.BackColor = System.Drawing.Color.White;
this.tp_2.Controls.Add(this.rb_4);
this.tp_2.Controls.Add(this.rb_3);
this.tp_2.Controls.Add(this.bn_remove2);
this.tp_2.Controls.Add(this.bn_add2);
this.tp_2.Controls.Add(this.bn_selectpath2);
this.tp_2.Controls.Add(this.tb_4);
this.tp_2.Controls.Add(this.tb_3);
this.tp_2.Controls.Add(this.label3);
this.tp_2.Controls.Add(this.label2);
this.tp_2.Controls.Add(this.DDRKMenuList);
this.tp_2.Controls.Add(this.label1);
this.tp_2.Location = new System.Drawing.Point(4, 21);
this.tp_2.Name = "tp_2";
this.tp_2.Size = new System.Drawing.Size(364, 307);
this.tp_2.TabIndex = 0;
this.tp_2.Text = "自定义驱动器和文件夹右键菜单";
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -