📄 mainform.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Diagnostics ;
namespace XP界面优化精灵
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class MainForm : System.Windows.Forms.Form
{
#region 自定义变量
bool istrue1=false,istrue2=false;
int opacity=0;
Color upcolor=Color.Black ;
dDesktop dd=new dDesktop ();
DWallpaper dw=new DWallpaper ();
#endregion
#region 系统定义的变量
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.PictureBox pictureBox3;
private System.Windows.Forms.PictureBox pictureBox4;
private System.Windows.Forms.PictureBox pictureBox5;
private System.Windows.Forms.PictureBox pictureBox6;
private System.Windows.Forms.PictureBox pictureBox7;
private System.Windows.Forms.PictureBox pictureBox8;
private System.Windows.Forms.Label lb_1;
private System.Windows.Forms.Label lb_2;
private System.Windows.Forms.Label lb_3;
private System.Windows.Forms.Label lb_4;
private System.Windows.Forms.Label lb_5;
private System.Windows.Forms.Label lb_6;
private System.Windows.Forms.Label lb_7;
private System.Windows.Forms.Label lb_info1;
private System.Windows.Forms.Label lb_info2;
private System.Windows.Forms.Label lb_info4;
private System.Windows.Forms.Label lb_info6;
private System.Windows.Forms.Label lb_info5;
private System.Windows.Forms.Label lb_info7;
private System.Windows.Forms.Panel selectItem;
private System.Windows.Forms.Panel About;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label EmailAddress;
private System.Windows.Forms.Label WebAddress;
private System.Windows.Forms.Label la_alot;
private System.Windows.Forms.Panel DDesktop;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label lb_info3;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label lb_dd1;
private System.Windows.Forms.PictureBox pictureBox10;
private System.Windows.Forms.PictureBox pictureBox11;
private System.Windows.Forms.PictureBox pictureBox12;
private System.Windows.Forms.Label lb_dd3;
private System.Windows.Forms.Label lb_goback;
private System.Windows.Forms.Label lb_dd2;
private System.Windows.Forms.Label lb_dd4;
private System.Windows.Forms.Panel IconChange;
private System.Windows.Forms.Label lb_ic2;
private System.Windows.Forms.PictureBox pictureBox14;
private System.Windows.Forms.Label lb_icback;
private System.Windows.Forms.PictureBox pictureBox15;
private System.Windows.Forms.Label lb_ic1;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.PictureBox pictureBox18;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label lb_bfback;
private System.Windows.Forms.PictureBox pictureBox23;
private System.Windows.Forms.Label lb_bf1;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.Panel myFolder;
private System.Windows.Forms.Label lb_mf2;
private System.Windows.Forms.PictureBox pictureBox27;
private System.Windows.Forms.Label lb_mfback;
private System.Windows.Forms.PictureBox pictureBox28;
private System.Windows.Forms.Label lb_mf1;
private System.Windows.Forms.Label label28;
private System.Windows.Forms.PictureBox pictureBox21;
private System.Windows.Forms.Label lb_bf3;
private System.Windows.Forms.Label lb_bf2;
private System.Windows.Forms.Panel otheraction;
private System.Windows.Forms.Label lb_oaback;
private System.Windows.Forms.Label lb_oa1;
private System.Windows.Forms.Panel browerface;
private System.Windows.Forms.Timer opacityAction;
private System.Windows.Forms.MenuItem menuItem2;
private System.Windows.Forms.NotifyIcon notifyIcon;
private System.Windows.Forms.ContextMenu contextMenu;
private System.Windows.Forms.MenuItem showMainForm;
private System.Windows.Forms.MenuItem menuItem4;
private System.Windows.Forms.MenuItem openDrive;
private System.Windows.Forms.MenuItem closeDrive;
private System.Windows.Forms.MenuItem mi_about;
public System.Windows.Forms.MenuItem exitprogram;
private System.Windows.Forms.PictureBox pictureBox26;
private System.Windows.Forms.PictureBox pictureBox29;
private System.Windows.Forms.PictureBox pictureBox31;
private System.Windows.Forms.PictureBox pictureBox32;
private System.Windows.Forms.PictureBox pictureBox33;
private System.Windows.Forms.PictureBox pictureBox9;
private System.Windows.Forms.PictureBox pictureBox34;
private System.Windows.Forms.PictureBox pictureBox17;
private System.Windows.Forms.PictureBox pictureBox22;
private System.Windows.Forms.PictureBox pictureBox24;
private System.Windows.Forms.PictureBox pictureBox25;
private System.Windows.Forms.PictureBox pictureBox13;
private System.Windows.Forms.PictureBox pictureBox19;
private System.Windows.Forms.PictureBox pictureBox20;
private System.Windows.Forms.Label lb_oa2;
private System.Windows.Forms.Label lb_bf5;
private System.Windows.Forms.PictureBox pictureBox30;
private System.Windows.Forms.Label lb_bf4;
private System.Windows.Forms.MenuItem mi_xpsuite;
private System.Windows.Forms.MenuItem menuItem5;
private System.Windows.Forms.MenuItem menuItem8;
private System.Windows.Forms.Label lb_info8;
private System.Windows.Forms.Label lb_8;
private System.Windows.Forms.PictureBox pictureBox35;
private System.Windows.Forms.Panel otherSet;
private System.Windows.Forms.PictureBox pictureBox36;
private System.Windows.Forms.PictureBox pictureBox37;
private System.Windows.Forms.PictureBox pictureBox38;
private System.Windows.Forms.PictureBox pictureBox39;
private System.Windows.Forms.PictureBox pictureBox40;
private System.Windows.Forms.Label lb_oc4;
private System.Windows.Forms.Label lb_oc2;
private System.Windows.Forms.Label lb_ocback;
private System.Windows.Forms.PictureBox pictureBox41;
private System.Windows.Forms.Label lb_oc3;
private System.Windows.Forms.Label lb_oc1;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.MenuItem mi_otherSet;
private System.Windows.Forms.Label lb_dregister;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label lb_oa3;
private System.Windows.Forms.PictureBox aboutPicture;
private TD.SandBar.ToolBar toolBar;
private TD.SandBar.ButtonItem bn_goback;
private TD.SandBar.ButtonItem bn_selectItem;
private TD.SandBar.ButtonItem bn_register;
private TD.SandBar.ButtonItem bn_upgrade;
private TD.SandBar.ButtonItem bn_help;
private TD.SandBar.ButtonItem buttonItem1;
private TD.SandBar.ToolBar sBar;
private TD.SandBar.LabelItem labelItem1;
private System.Windows.Forms.MenuItem mi_dwallpaper;
private System.Windows.Forms.MenuItem mi_ddesktop;
private System.ComponentModel.IContainer components;
#endregion
public MainForm()
{
//
// 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()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainForm));
this.panel1 = new System.Windows.Forms.Panel();
this.About = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.la_alot = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.EmailAddress = new System.Windows.Forms.Label();
this.WebAddress = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.lb_dregister = new System.Windows.Forms.Label();
this.aboutPicture = new System.Windows.Forms.PictureBox();
this.DDesktop = new System.Windows.Forms.Panel();
this.pictureBox9 = new System.Windows.Forms.PictureBox();
this.pictureBox26 = new System.Windows.Forms.PictureBox();
this.lb_dd4 = new System.Windows.Forms.Label();
this.lb_dd2 = new System.Windows.Forms.Label();
this.pictureBox12 = new System.Windows.Forms.PictureBox();
this.pictureBox11 = new System.Windows.Forms.PictureBox();
this.lb_goback = new System.Windows.Forms.Label();
this.pictureBox10 = new System.Windows.Forms.PictureBox();
this.lb_dd3 = new System.Windows.Forms.Label();
this.lb_dd1 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label6 = new System.Windows.Forms.Label();
this.IconChange = new System.Windows.Forms.Panel();
this.pictureBox34 = new System.Windows.Forms.PictureBox();
this.pictureBox29 = new System.Windows.Forms.PictureBox();
this.lb_ic2 = new System.Windows.Forms.Label();
this.pictureBox14 = new System.Windows.Forms.PictureBox();
this.lb_icback = new System.Windows.Forms.Label();
this.pictureBox15 = new System.Windows.Forms.PictureBox();
this.lb_ic1 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.otherSet = new System.Windows.Forms.Panel();
this.pictureBox36 = new System.Windows.Forms.PictureBox();
this.pictureBox37 = new System.Windows.Forms.PictureBox();
this.pictureBox38 = new System.Windows.Forms.PictureBox();
this.pictureBox39 = new System.Windows.Forms.PictureBox();
this.pictureBox40 = new System.Windows.Forms.PictureBox();
this.lb_oc4 = new System.Windows.Forms.Label();
this.lb_oc2 = new System.Windows.Forms.Label();
this.lb_ocback = new System.Windows.Forms.Label();
this.pictureBox41 = new System.Windows.Forms.PictureBox();
this.lb_oc3 = new System.Windows.Forms.Label();
this.lb_oc1 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.myFolder = new System.Windows.Forms.Panel();
this.pictureBox17 = new System.Windows.Forms.PictureBox();
this.pictureBox31 = new System.Windows.Forms.PictureBox();
this.lb_mf2 = new System.Windows.Forms.Label();
this.pictureBox27 = new System.Windows.Forms.PictureBox();
this.lb_mfback = new System.Windows.Forms.Label();
this.pictureBox28 = new System.Windows.Forms.PictureBox();
this.lb_mf1 = new System.Windows.Forms.Label();
this.label28 = new System.Windows.Forms.Label();
this.selectItem = new System.Windows.Forms.Panel();
this.lb_info8 = new System.Windows.Forms.Label();
this.lb_8 = new System.Windows.Forms.Label();
this.pictureBox35 = new System.Windows.Forms.PictureBox();
this.label11 = new System.Windows.Forms.Label();
this.lb_info7 = new System.Windows.Forms.Label();
this.lb_info6 = new System.Windows.Forms.Label();
this.lb_info5 = new System.Windows.Forms.Label();
this.lb_info4 = new System.Windows.Forms.Label();
this.lb_info3 = new System.Windows.Forms.Label();
this.lb_info2 = new System.Windows.Forms.Label();
this.lb_info1 = new System.Windows.Forms.Label();
this.lb_7 = new System.Windows.Forms.Label();
this.lb_6 = new System.Windows.Forms.Label();
this.lb_5 = new System.Windows.Forms.Label();
this.lb_4 = new System.Windows.Forms.Label();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -