📄 otherset.cs
字号:
}
else
{
action.removeRightKeyMenu ("File","exefile","XP风格程序");
}
}
catch
{
MessageBox.Show ("对此操作有误。",action.Caption );
}
}
/// <summary>
/// 在文件夹右键菜单添加DOS快速通道
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void cb_24_CheckedChanged(object sender, System.EventArgs e)
{
try
{
if(cb_24.Checked)
{
action.setRightKeyMenu("Directory","","DOS快速通道","cmd.exe /K CD %1");
}
else
{
action.removeRightKeyMenu ("Directory","","DOS快速通道");
}
}
catch
{
MessageBox.Show ("对此操作有误。",action.Caption );
}
}
/// <summary>
/// 在驱动器右键菜单添加DOS快速通道
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void cb_28_CheckedChanged(object sender, System.EventArgs e)
{
try
{
if(cb_28.Checked)
{
action.setRightKeyMenu("Drive","","DOS快速通道","cmd.exe /K CD %1");
}
else
{
action.removeRightKeyMenu ("Drive","","DOS快速通道");
}
}
catch
{
MessageBox.Show ("对此操作有误。",action.Caption );
}
}
/// <summary>
/// 在文件夹右键菜单添加XP界面优化精灵
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void cb_25_CheckedChanged(object sender, System.EventArgs e)
{
try
{
if(cb_24.Checked)
{
action.setRightKeyMenu("Directory","","XP界面优化精灵",Application.ExecutablePath);
}
else
{
action.removeRightKeyMenu ("Directory","","XP界面优化精灵");
}
}
catch
{
MessageBox.Show ("对此操作有误。",action.Caption );
}
}
/// <summary>
/// 在驱动器右键菜单添加关机
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void cb_27_CheckedChanged(object sender, System.EventArgs e)
{
try
{
if(cb_27.Checked)
{
action.setRightKeyMenu("Drive","","关机","shutdown -s");
}
else
{
action.removeRightKeyMenu ("Drive","","关机");
}
}
catch
{
MessageBox.Show ("对此操作有误。",action.Caption );
}
}
/// <summary>
/// 在驱动器右键菜单添加注销
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void cb_26_CheckedChanged(object sender, System.EventArgs e)
{
try
{
if(cb_26.Checked)
{
action.setRightKeyMenu("Drive","","注销","shutdown -l");
}
else
{
action.removeRightKeyMenu ("Drive","","注销");
}
}
catch
{
MessageBox.Show ("对此操作有误。",action.Caption );
}
}
private void bn_CRKMenu1_Click(object sender, System.EventArgs e)
{
CRightKeyMenu.tab =0;
CRightKeyMenu crkm=new CRightKeyMenu ();
crkm.ShowDialog ();
}
private void bn_CRKMenu2_Click(object sender, System.EventArgs e)
{
CRightKeyMenu.tab =1;
CRightKeyMenu crkm=new CRightKeyMenu ();
crkm.ShowDialog ();
}
private void bn_CRKMenu_Click(object sender, System.EventArgs e)
{
CRightKeyMenu.tab =0;
CRightKeyMenu.isspecific =true;
CRightKeyMenu crkm=new CRightKeyMenu ();
crkm.ShowDialog ();
}
private void bn_optimize_Click(object sender, System.EventArgs e)
{
#region 写入优化设置选项
string temp="";
temp+=this.cb_1.Checked.ToString ()+",";
temp+=this.cb_2.Checked.ToString ()+",";
temp+=this.cb_3.Checked.ToString ()+",";
temp+=this.cb_4.Checked.ToString ()+",";
temp+=this.cb_5.Checked.ToString ()+",";
temp+=this.cb_6.Checked.ToString ()+",";
temp+=this.cb_7.Checked.ToString ()+",";
temp+=this.cb_8.Checked.ToString ()+",";
temp+=this.cb_9.Checked.ToString ()+",";
temp+=this.cb_10.Checked.ToString ()+",";
temp+=this.cb_11.Checked.ToString ()+",";
temp+=this.cb_12.Checked.ToString ()+",";
temp+=this.cb_13.Checked.ToString ()+",";
temp+=this.cb_14.Checked.ToString ()+",";
temp+=this.cb_15.Checked.ToString ()+",";
temp+=this.cb_16.Checked.ToString ()+",";
temp+=this.cb_17.Checked.ToString ()+",";
temp+=this.cb_18.Checked.ToString ()+",";
temp+=this.cb_19.Checked.ToString ()+",";
temp+=this.cb_20.Checked.ToString ()+",";
temp+=this.cb_21.Checked.ToString ()+",";
temp+=this.cb_22.Checked.ToString ()+",";
temp+=this.cb_23.Checked.ToString ()+",";
action.WriteSet ("c:\\windows\\OptimizeSet.dat" ,temp);
#endregion
MessageBox.Show("己成功优化.",action.Caption);
}
private void bn_optimize2_Click(object sender, System.EventArgs e)
{
#region 写入其它优化设置选项
string temp="";
temp+=this.cb_29.Checked.ToString ()+",";
temp+=this.cb_30.Checked.ToString ()+",";
temp+=this.cb_31.Checked.ToString ()+",";
temp+=this.cb_32.Checked.ToString ()+",";
temp+=this.cb_33.Checked.ToString ()+",";
temp+=this.cb_34.Checked.ToString ()+",";
temp+=this.cb_35.Checked.ToString ()+",";
temp+=this.cb_36.Checked.ToString ()+",";
temp+=this.cb_37.Checked.ToString ()+",";
temp+=this.cb_38.Checked.ToString ()+",";
temp+=this.cb_39.Checked.ToString ()+",";
temp+=this.cb_40.Checked.ToString ()+",";
temp+=this.cb_41.Checked.ToString ()+",";
temp+=this.cb_42.Checked.ToString ()+",";
action.WriteSet ("c:\\windows\\OtherOptimizeSet.dat" ,temp);
#endregion
MessageBox.Show("己成功优化.",action.Caption);
}
#region 具体操作
private void cb_1_CheckedChanged(object sender, System.EventArgs e)
{
if(cb_1.Checked)
{
action.setcb_1();
}
else
{
action.Delcb_1();
}
}
private void cb_2_CheckedChanged(object sender, System.EventArgs e)
{
if(cb_1.Checked)
{
action.setcb_2();
}
else
{
action.Delcb_2();
}
}
private void cb_3_CheckedChanged(object sender, System.EventArgs e)
{
if(cb_1.Checked)
{
action.setcb_3();
}
else
{
action.Delcb_3();
}
}
private void cb_4_CheckedChanged(object sender, System.EventArgs e)
{
if(cb_1.Checked)
{
action.setcb_4();
}
else
{
action.Delcb_4();
}
}
private void cb_5_CheckedChanged(object sender, System.EventArgs e)
{
if(cb_1.Checked)
{
action.setcb_5();
}
else
{
action.Delcb_5();
}
}
private void cb_6_CheckedChanged(object sender, System.EventArgs e)
{
if(cb_1.Checked)
{
action.setcb_6();
}
else
{
action.Delcb_6();
}
}
private void cb_7_CheckedChanged(object sender, System.EventArgs e)
{
if(cb_1.Checked)
{
action.setcb_7();
}
else
{
action.Delcb_7();
}
}
private void cb_8_CheckedChanged(object sender, System.EventArgs e)
{
if(cb_1.Checked)
{
action.setcb_8();
}
else
{
action.Delcb_8();
}
}
private void cb_9_CheckedChanged(object sender, System.EventArgs e)
{
if(cb_1.Checked)
{
action.setcb_9();
}
else
{
}
}
private void cb_10_CheckedChanged(object sender, System.EventArgs e)
{
if(cb_1.Checked)
{
action.setcb_10();
}
else
{
action.Delcb_10();
}
}
private void cb_11_CheckedChanged(object sender, System.EventArgs e)
{
if(cb_1.Checked)
{
action.setcb_11();
}
else
{
action.Delcb_11();
}
}
private void cb_12_CheckedChanged(object sender, System.EventArgs e)
{
if(cb_1.Checked)
{
action.setcb_12();
}
else
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -