首页 精品windows优化巨匠(书)

精品windows优化巨匠(书)

举报
开通vip

精品windows优化巨匠(书)精品windows优化巨匠(书) 1 第一章 项目实践说明 3 1.1 项目实践方式......................................................................... 3 1.2 项目实践目标......................................................................... 3 1.3 本书的编写说明 ..............................................

精品windows优化巨匠(书)
精品windows优化巨匠(书) 1 第一章 项目实践说明 3 1.1 项目实践方式......................................................................... 3 1.2 项目实践目标......................................................................... 3 1.3 本书的编写说明 ..................................................................... 4 2 第二章 前言................................................................................... 4 3 第三章 需求 分析 定性数据统计分析pdf销售业绩分析模板建筑结构震害分析销售进度分析表京东商城竞争战略分析 ......................................................................... 4 3.1 项目介绍 ................................................................................... 4 3.1.1 启动界面 ............................................................................ 4 3.1.2 系统信息总揽 ..................................................................... 5 3.2 需求分析与总体设计 ............................................................. 5 3.2.1 系统功能性需求 ................................................................. 5 3.2.2 系统的非功能性需求 .......................................................... 6 3.2.2.1 用户的界面需求............................................................... 6 3.2.2.2 运行环境需求 .................................................................. 6 3.2.2.3 质量需求.......................................................................... 6 3.2.3 需求建模及分析报告 .......................................................... 7 3.2.3.1 需求建模及分析............................................................... 7 4 第五章 项目详细设计 .................................................................... 8 4.1 项目模块组成结构 ................................................................. 8 4.2 系统功能组成结构图 ............................................................. 9 4.3 程序系统的结构 ..................................................................... 9 4.4 项目模块详细设计 ............................................................... 10 4.4.1 程序描述 .......................................................................... 10 4.4.2 程序流程及逻辑设计 ........................................................ 11 4.4.2.1 程序操作流程 .................................................................11 4.4.3 模块功能没计 ................................................................... 11 4.4.3.1 界面制作步骤 .................................................................11 4.4.3.2 主要功能模块 ................................................................ 23 4.4.3.3 功能模块清单 ................................................................ 28 4.4.3.4 系统信息总揽 ................................................................ 29 4.4.3.4.1 功能函数设计............................................................. 35 4.4.3.4.2 启动信息界面............................................................. 37 4.4.3.4.3 功能函数设计............................................................. 38 4.4.3.5 处理器与主板 ................................................................ 39 4.4.3.5.1 功能函数设计............................................................. 41 4.4.3.6 显卡系统信息 ................................................................ 43 4.4.3.6.1 功能函数设计............................................................. 44 4.4.3.7 系统进程信息 ................................................................ 45 4.4.3.7.1 功能函数设计............................................................. 46 4.4.3.8 硬盘系统信息 ................................................................ 49 4.4.3.8.1 功能函数设计............................................................. 50 4.4.3.9 存储系统信息 ................................................................ 51 4.4.3.9.1 功能函数设计............................................................. 52 4.4.3.10 网络信息总揽............................................................... 53 4.4.3.10.1 功能函数设计 ........................................................... 54 4.4.3.11 其它设备信息............................................................... 56 4.4.3.11.1 功能函数设计 ........................................................... 56 4.4.3.12 多功能关机 .................................................................. 58 4.4.3.13 垃圾文件清理............................................................... 62 4.4.3.14 软件信息智能扫描 ....................................................... 70 4.4.3.15 开机速度优化............................................................... 72 4.4.3.16 主要清理区功能: ....................................................... 78 4.4.3.17 注解与说明:..............................................................100 4.4.3.18 调用API函数信息表 .....................................................100 1 第一章 项目实践说明 1.1 项目实践方式 通用对C#.Net语言WinForm编程基础等课程的学习。大部分学员已基本掌握基理论知识。在这里我们必须明白学习程序设计的目的是什么,学会了将来能干什么。作为一名职业程序员不但要有扎实的理论基础,而且还应具备一定的开发能力。此次项目实践主要是围绕前面所学的 知识点 高中化学知识点免费下载体育概论知识点下载名人传知识点免费下载线性代数知识点汇总下载高中化学知识点免费下载 ,将这些零散的知识点集中起来,通用项目开发的方式。使之真正能达到掌握及融会贯通的目的。也为后期的高级课程打下牢固的基础。 实践有多种方式,在这里我们采用“单兵演练”的形式。在以后的企业级应用等大型项目实践中我们将采取分组实践的方式。不同的实践方式会使你在编码开发过程中有不同的收获和感受。这些实践的收获结合后期课程不断深入的学习将促进你不断的提高。 1.2 项目实践目标 序号 内容 要求 1 C#基本语法 掌握 2 面向对象的概念及特性。 掌握 3 类的概念及使用 方法 快递客服问题件处理详细方法山木方法pdf计算方法pdf华与华方法下载八字理论方法下载 掌握 4 继承的概念、原则及使用方法。 掌握 5 方法及构造方法的使用方法。 掌握 6 Panel的常用使用方法 掌握 7 TreeView的常用使用方法 掌握 8 ListView的常用使用方法 掌握 9 ImageList 的常用使用方法 掌握 10 常用控件的使用如:Button、TextBox、Label、ComBox等 掌握 1.3 本书的编写说明 本书主要讲述模拟Windows优化大师的项目的详细开发过程。该项目作为WinForm实践课程主要科目。同学们可以在完成该项目外利用课外时间试着独立完成WinForm项目。如模 本项目覆盖了C#.NET编程的绝大部分知识点。并拟“超级兔子”或者其它类似优化软件。 且通过反复演练一些类似的功能模块来强化训练一些重要的知识点。目的在于“彻底学会,完全掌握,熟练应用”,只有真正通过了这一关,你才具备进行下一阶段学习的资格,这就是学编程,基础为什么如此重要的一个重要原因。 2 第二章 前言 如今的Windows操作系统,当用户操作系统时带来的系统垃圾信息,比如系统的垃圾文件,浏览网络是产生的垃圾信息,系统各种信息的优化等等„,越来越阻碍系统的运行效率,随着用户对系统的运行效率的越来越高的要求,市场上就产生了一些针对Windows系统进行优化的优化软件,比如”超级兔子”,”Windows优化大师”等等„.都逐渐走进用户的电脑,并启着重要的作用.。越来越多的用户都使用这些软件对计算机进行优化设置,并得到了用户市场的认可.其中也不乏一些公司也纷纷在使用,更加增强了其获得更强的市场竞争能力,拥有更多的优势,创造更多的经济价值. 3 第三章 需求分析 3.1 项目介绍 系统优化大师软件主要适用于Windows98/Me/2000/XP/2003操作系统平台,能够为您设置您的系统提供全面有效、简便安全的优化、清理和维护手段,让您的电脑系统始终保持在最佳状态。 3.1.1 启动界面 Flash动画能够直观,清晰的展现公司的形象,以文字,图片,录象,声音等形式,起到宣传贵公司企业形象和产品的作用。 其具有以下几个特点: 生动、活泼,可以吸引用户对公司的形象的了解,强烈的视觉冲击力可以给用户留下深 刻的印象。 3.1.2 系统信息总揽 检测Windows操作系统的一些情况,同时对系统信息和计算机的主要硬件设备列表显示。 其特点如下: 专业特点,突出各类信息的类别和显示方式 信息列表,自动排序——信息次序以时间自动排序,无须人工操作 图文并茂,强化主题——每条信息都可以附带相关图片,加深渲染效果 分类详尽,便于阅读——利于用户意图查找信息,直奔主题 3.2 需求分析与总体设计 3.2.1 系统功能性需求 功能类别 功能名称 描述 启动页 启动页 启动页面局、显示内容等。 检测Windows操作系统的一些情况,同时对系系统信息总揽 统的主要硬件设备列表显示。 检测电脑的CPU、BIOS、主板(包括芯片组、处理器与主板 主板插槽、接口等)、系统制造商、总线设备等。 硬盘系统信息 检测用户电脑的硬盘的各种信息 系统信息检测 显卡系统信息 检测用户的显卡和显示器。 存储系统信息 检测系统的内存、硬盘和光驱的情况。 网络信息总揽 检测局域网和广域网的信息。 检测键盘、鼠标、USB控制器、打印机、即插其它设备信息 即用设备的信息。 开机速度优化 优化设置开机启动项目。 系统信息优化 系统个性设置 启用用户个性设置模块。 IE浏览器清理 清理IE浏览器冗于的信息。 系统信息清理 软件智能扫描 扫描用户安装的所有软件。 系统信息维护 垃圾文件清理 清理用户的回收站的垃圾文件信息。 历史痕迹清理 扫描用户注册与浏览信息冗于信息的清理。 多功能关机器 设置多种关机的方式。 3.2.2 系统的非功能性需求 3.2.2.1 用户的界面需求 需求名称 详细要求 风格 暂无 界面背景 页眉背景做成有动感效果flash 颜色 清新明亮 布局 简洁合理 功能菜单 层次结构合理,以列表形式 能够方便地在相关功能页面中作切换,如:一级页面要有切换到系统首页的界面间切换 链接等。 3.2.2.2 运行环境需求 需求名称 详细要求 Web服务器为Windows 2000 Server、net framework 软件环境 1.1+IIS 5.0 硬件环境 数据库 SQL Server 2000企业版 3.2.2.3 质量需求 主要质量属性 详细要求 正确性 系统所有的功能必须能够正确处理 健壮性 提供较强的出错处理功能,当用户出现误操作时,系统还能够正常运行 可靠性 应能够7*24小时无故障运行 性能,效率 在正常网络环境下,支持多客户端同时访问,对一般性操作应能流畅执行 易用性 采用网页操作方式 清晰性 操作流程、提示信息必须清晰,无歧义 安全性 数据的存放必须加密,提交查询的参数以密文的方式传输 应该充分考虑到将来用户需求的在一定范围内发生改变时,对系统进行升级可扩展性 或功能的扩展,避免需求变更时大规模修改程序 兼容性 无特殊要求 可移植性 无特殊要求 3.2.3 需求建模及分析报告 3.2.3.1 需求建模及分析 用例图 用例(一) 通过上图用例图,总结如下: 一、用户操作管理各种系统信息进行检测,优化,维护,清理; 时序图 4 第五章 项目详细设计 4.1 项目模块组成结构 通过需求的分析结果,我们可以看出,整个系统由系统信息和设备信息管两大模块组成。 4.2 系统功能组成结构图 主界面 系统信息清理 系统信息检测 历系软开垃多处硬显存网其系 多史统件机圾功理盘卡储络它统 功器系系系信设智速文能个痕信 能与统统统息备能度件关性迹息 关清设扫优清机主信信信总信总 机 理 置揽 描 化 理 器 板 息 息 息 揽 息 器 系统信息操作 详细信息 4.3 程序系统的结构 系统采用Microsoft Visual Studio.net 2003(C#.net)作为开发工具 示意图如下: WinForm用户界面 C#.NET应用程序 计算机系统信息 4.4 项目模块详细设计 4.4.1 程序描述 提供基于Windows优化大师功能设置。包括公司简介信息、系统软件信息、系统信息、 以及系统硬件信息。 使用的角色:所有人员 4.4.2 程序流程及逻辑设计 4.4.2.1 程序操作流程 开始 登陆主界面 选择导航栏目 程序响应并返回 结束 4.4.3 模块功能没计 4.4.3.1 界面制作步骤 项目中所需使用的命名空间 导入命名空间: using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text;//命名空间包含表示 ASCII、Unicode、UTF-7 和 UTF-8 字符编码的类 using System.Windows.Forms; using System.Management;//提供对大量管理信息和管理事件集合的访问,这些信息和事件是与根据 Windows 管理 规范 编程规范下载gsp规范下载钢格栅规范下载警徽规范下载建设厅规范下载 (WMI) 结构对系统、设备和应用程序设置检测点有关的。 using System.Runtime.InteropServices;//命名空间提供各种各样支持 COM interop 及平台调用服务的成员。 using System.Diagnostics; //命名空间提供特定的类,使您能够与系统进程、事件日志和性能计数器进行交互。 using Microsoft.Win32; //操作注册表要用的名称空间 using System.IO;//命名空间包含允许读写文件和数据流的类型以及提供基本文件和目录支持的类型。 一 系统信息检测--菜单 ImageList常用属性设置 属性分类 属性名称 取值 说明 图象 Images Bitmap 存储在其中的图象 边框 ImageSize 32,32 图象的大小 背景图片 TransparentColor Transparent 被视为透明的颜色 Imagelist集合添加图标: 点击Images属性弹出: 添加Button控件与图标时的属性设置如下: Button常用属性设置 属性分类 属性名称 取值 说明 按钮风格 FlatStyle Flat 填充其停靠位置 按钮图片的排版 ImageAlign MiddleLeft 排版的位置 图片的索引 ImageIndex 0 按钮上显示的图片 文字的排版 TextAlign MiddleRight 按钮上显示的文字 按钮绑定图片 ImageList System.Drawing.Bitmap 控件绑定的图片 TreeView常用属性设置 属性分类 属性名称 取值 说明 布局 Dock Fill 填充其停靠位置 位置 Location 4,192 控件的位置 绑定图片 ImageList System.Drawing.Bitmap 控件绑定的图片 Panel常用属性设置 属性分类 属性名称 取值 说明 布局 Dock Fill 填充其停靠位置 位置 Location 4,192 控件的位置 PictureBox常用属性设置 属性分类 属性名称 取值 说明 布局 Dock Top 填充其停靠位置 背景图片 BackgroundImage System.Drawing.Bitmap 用于该控件的背景图像 位置 Location 0, 0 控件的位置 界面初始化时Panel上面控件的排版位置代码: /// /// panel初始化位置 /// private void InitForm() { this.m_ButMaster.Location=new Point(this.m_ButMaster.Location.X,this.m_MainPanel.Height-this.m_ButMaintenance.Height*3); this.m_ButClear.Location=new Point(this.m_ButClear.Location.X,this.m_MainPanel.Height-this.m_ButClear.Height*2); this.m_ButMaintenance.Location=new Point(this.m_ButMaintenance.Location.X,this.m_MainPanel.Height-this.m_ButMaintenance.Height) ; //this.panel1.Size = new System.Drawing.Size(this.m_MainPanel.Width-10,m_ButDetect.Height+this.m_ButDetect.Height*5); this.panel1.Location=new Point(this.m_ButDetect.Location.X,3*this.m_ButDetect.Height-10); this.panel1.Size = new System.Drawing.Size(this.m_ButDetect.Width,this.m_MainPanel.Height-3*this.m_ButDetect.Height ); this.panel1.Show(); this.panel2.Hide(); this.panel3.Hide(); this.panel4.Hide(); this.panel5.Show(); this.panel6.Hide(); this.panel13.Hide(); } 运行后的界面效果图: 二 ,系统信息维护――菜单: 各种控件属性查看前面系统信息检测功能区。 添加Button按钮后的界面如下: 加入图片后的界面如下:(加入图片方法查看前面例子) 控件排版代码如下: /// /// ******************************************************************************************** /// 系统信息维护功能区 /// ******************************************************************************************** /// /// /// private void m_ButMaintenance_Click(object sender, System.EventArgs e) { this.m_ButMaster.Location=new Point(this.m_ButMaster.Location.X,this.m_ButDetect.Height*3-10); this.m_ButClear.Location=new Point(this.m_ButClear.Location.X,this.m_ButClear.Height*4-10); this.m_ButMaintenance.Location=new Point(this.m_ButMaintenance.Location.X,5*m_ButMaintenance.Height-10); this.panel4.Location=new Point(this.m_ButMaintenance.Location.X,6*this.m_ButMaintenance.Height-10); this.panel4.Size = new System.Drawing.Size(this.m_ButMaintenance.Width,this.m_MainPanel.Height-5*this.m_ButMaintena nce.Height); this.panel1.Hide(); this.panel2.Hide(); this.panel3.Hide(); this.panel4.Show(); this.panel5.Hide(); this.panel6.Show(); this.panel7.Hide(); this.panel8.Hide(); this.panel9.Hide(); this.panel10.Hide(); this.panel11.Hide(); this.panel12.Hide(); this.panel13.Hide(); this.panel14.Hide(); this.panel15.Hide(); this.panel6.Width=536; this.panel6.Height=448; this.panel6.Location=new Point(16,8);} 运行界面结果如下: 添加右边panel控件: 添加右边Panel上的ListView显示控件 添加右边ListView显示控件并设属性 添加成功后的界面如下: 其他功能区代码对照前面代码查看: /// /// ******************************************************************************************** /// 系统信息优化功能区排版 /// ******************************************************************************************** /// /// /// private void m_ButMaster_Click(object sender, System.EventArgs e) { //this.m_ButMaster.Location=new Point(this.m_ButMaster.Location.X,this.m_MainPanel.Height-this.m_ButMaintenance.Height*3); this.m_ButMaster.Location=new Point(this.m_ButMaster.Location.X,this.m_ButDetect.Height*3-10); this.m_ButClear.Location=new Point(this.m_ButClear.Location.X,this.m_MainPanel.Height-this.m_ButClear.Height*2); this.m_ButMaintenance.Location=new Point(this.m_ButMaintenance.Location.X,this.m_MainPanel.Height-this.m_ButMaintenance.Height) ; this.panel2.Location=new Point(this.m_ButMaster.Location.X,4*this.m_ButMaster.Height-10); this.panel2.Size = new System.Drawing.Size(this.m_ButMaster.Width,this.m_MainPanel.Height-5*this.m_ButMaster.Height ); this.panel1.Hide(); this.panel2.Show(); this.panel3.Hide(); this.panel4.Hide(); } /// /// /// 系统信息清理功能区排版 /// /// /// /// private void m_ButClear_Click(object sender, System.EventArgs e) { this.m_ButMaster.Location=new Point(this.m_ButMaster.Location.X,this.m_ButDetect.Height*3-10); this.m_ButClear.Location=new Point(this.m_ButClear.Location.X,this.m_ButClear.Height*4-10); this.m_ButMaintenance.Location=new Point(this.m_ButMaintenance.Location.X,this.m_MainPanel.Height-this.m_ButMaintenance.Height) ; this.panel3.Location=new Point(this.m_ButClear.Location.X,5*this.m_ButClear.Height-10); this.panel3.Size = new System.Drawing.Size(this.m_ButClear.Width,this.m_MainPanel.Height-5*this.m_ButClear.Height); this.panel1.Hide(); this.panel2.Hide(); this.panel3.Show(); this.panel4.Hide(); } 4.4.3.2 主要功能模块 一 系统信息检测--菜单 详尽准确的系统信息检测。系统优化大师深入系统底层,分析用户电脑,提供详细准确 的硬件、软件信息,并根据检测结果向用户提供系统性能进一步提高的建议。 二 系统信息优化--菜单 全面的系统优化选项。磁盘缓存、桌面菜单、文件系统、网络、开机速度、系统安全、后台服务等能够优化的方方面面全面提供。并向用户提供简便的自动优化向导,能够根据检测分析到的用户电脑软、硬件配置信息进行自动优化。所有优化项目均提供恢复功能,用户若对优化结果不满意可以一键恢复。 三 系统信息清理--菜单 四. 系统信息检测详细参数 机器内置参数中文名称: // 硬件 Win32_Processor, // CPU 处理器 Win32_PhysicalMemory, // 物理内存条 Win32_Keyboard, // 键盘 Win32_PointingDevice, // 点输入设备,包括鼠标。 Win32_FloppyDrive, // 软盘驱动器 Win32_DiskDrive, // 硬盘驱动器 Win32_CDROMDrive, // 光盘驱动器 Win32_BaseBoard, // 主板 Win32_BIOS, // BIOS 芯片 Win32_ParallelPort, // 并口 Win32_SerialPort, // 串口 Win32_SerialPortConfiguration, // 串口配置 Win32_SoundDevice, // 多媒体设置,一般指声卡。 Win32_SystemSlot, // 主板插槽 (ISA & PCI & AGP) Win32_USBController, // USB 控制器 Win32_NetworkAdapter, // 网络适配器 Win32_NetworkAdapterConfiguration, // 网络适配器设置 Win32_Printer, // 打印机 Win32_PrinterConfiguration, // 打印机设置 Win32_PrintJob, // 打印机任务 Win32_TCPIPPrinterPort, // 打印机端口 Win32_POTSModem, // MODEM Win32_POTSModemToSerialPort, // MODEM 端口 Win32_DesktopMonitor, // 显示器 Win32_DisplayConfiguration, // 显卡 Win32_DisplayControllerConfiguration, // 显卡设置 Win32_VideoController, // 显卡细节。 Win32_VideoSettings, // 显卡支持的显示模式。 // 操作系统 Win32_TimeZone, // 时区 Win32_SystemDriver, // 驱动程序 Win32_DiskPartition, // 磁盘分区 Win32_LogicalDisk, // 逻辑磁盘 Win32_LogicalDiskToPartition, // 逻辑磁盘所在分区及始末位置。 Win32_LogicalMemoryConfiguration, // 逻辑内存配置 Win32_PageFile, // 系统页文件信息 Win32_PageFileSetting, // 页文件设置 Win32_BootConfiguration, // 系统启动配置 Win32_ComputerSystem, // 计算机信息简要 Win32_OperatingSystem, // 操作系统信息 Win32_StartupCommand, // 系统自动启动程序 Win32_Service, // 系统安装的服务 Win32_Group, // 系统管理组 Win32_GroupUser, // 系统组帐号 Win32_UserAccount, // 用户帐号 Win32_Process, // 系统进程 Win32_Thread, // 系统线程 Win32_Share, // 共享 Win32_NetworkClient, // 已安装的网络客户端 Win32_NetworkProtocol, // 已安装的网络协议 4.4.3.3 功能模块清单 编程人员按照此表对项目功能查询进行初步设计,其中包括命名空间,类的名称以及类 的调用继承。 主要功能 命名空间 类名 继承 系统信息总揽 Wopi Wopi, SysInfo Form 处理器与主板 Wopi Wopi, SysInfo Form 硬盘系统信息 Wopi Wopi, SysInfo Form 显卡系统信息 Wopi Wopi, SysInfo Form 存储系统信息 Wopi Wopi, SysInfo Form 网络信息总揽 Wopi Wopi, SysInfo Form 其它设备信息 Wopi Wopi, SysInfo Form 开机速度优化 Wopi Wopi, SysInfo Form 系统个性设置 Wopi Wopi, SysInfo Form 注册表清理 Wopi Wopi, SysInfo Form 历史痕迹清理 Wopi Wopi, SysInfo Form 垃圾文件清理 Wopi Wopi, SysInfo Form 系统日志维护 Wopi Wopi, SysInfo Form 多功能关机器 Wopi Wopi, SysInfo Form 系统信息检测类 Wopi Wopi, SysInfo Form 启动界面 Wopti Myload Form IE浏览信息清理 Wopti Wopi Form 用户浏览垃圾清理 Wopti Wopti Form 系统进程列表 Wopti Wopti Form 系统个性设置 Wopti Wopti Form 清空回收站 Wopti Wopti Form 关于界面 Wopti AboutForm Form 4.4.3.4 系统信息总揽 检测Windows操作系统的一些情况,同时对系统的主要硬件设备列表显示,比如对系 统硬件的信息的显示。 一、Panel常用属性设置 属性分类 属性名称 取值 说明 布局 Dock None 填充其停靠位置 边框 Location 4,224 对其容器的位置 大小 Size 136,295 控件大小 ImageList常用属性设置 属性分类 属性名称 取值 说明 图象 Images Bitmap 存储在其中的图象 边框 ImageSize 32,32 图象的大小 背景图片 TransparentColor Transparent 被视为透明的颜色 TreeView常用属性设置 属性分类 属性名称 取值 说明 布局 Dock Fill 填充其停靠位置 边框 BorderStyle FixedSingle PictureBox的边框类型 节点 Nodes 树控件中节点数 背景图片 ImageList Bitmap 节点的图片设置 二、TreeView视图代码 [DllImport("kernel32")] public static extern void GetWindowsDirectory(StringBuilder WinDir, int count); [DllImport("kernel32")] public static extern void GetSystemDirectory(StringBuilder SysDir, int count); [DllImport("kernel32")] public static extern void GetSystemInfo(ref CPU_INFO cpuinfo); [DllImport("kernel32")] public static extern void GlobalMemoryStatus(ref MEMORY_INFO meminfo); [DllImport("kernel32")] public static extern void GetSystemTime(ref SYSTEMTIME_INFO stinfo); //在导入了名称空间后,我们要声明在程序中所要用到的API函数。我们的程序主要是获取系统的相关信息,所以用到的API函数都是返回系统信息的。先给出在Visual C#中声明API的方法 [ DllImport("user32") ] public static extern long SetWindowPos(long hwnd , long hWndInsertAfter, long X , long y , long cx, long cy, long wFlagslong); //声明其它的在程序中所要用到的API函数: [ DllImport("user32") ] public static extern long ExitWindowsEx(long uFlags, long dwReserved ) ; [ DllImport("shell32") ] public static extern long ShellAbout(long uFlags, long dwReserved ) ; //定义CPU的信息结构 [StructLayout(LayoutKind.Sequential)] public struct CPU_INFO { public uint dwOemId; public uint dwPageSize; public uint lpMinimumApplicationAddress; public uint lpMaximumApplicationAddress; public uint dwActiveProcessorMask; public uint dwNumberOfProcessors; public uint dwProcessorType; public uint dwAllocationGranularity; public uint dwProcessorLevel; public uint dwProcessorRevision; } //定义内存的信息结构 [StructLayout(LayoutKind.Sequential)] public struct MEMORY_INFO { public uint dwLength; public uint dwMemoryLoad; public uint dwTotalPhys; public uint dwAvailPhys; public uint dwTotalPageFile; public uint dwAvailPageFile; public uint dwTotalVirtual; public uint dwAvailVirtual; } //定义系统时间的信息结构 [StructLayout(LayoutKind.Sequential)] public struct SYSTEMTIME_INFO { public ushort wYear; public ushort wMonth; public ushort wDayOfWeek; public ushort wDay; public ushort wHour; public ushort wMinute; public ushort wSecond; public ushort wMilliseconds; } private void InitGetSysInfo() { //调用GetWindowsDirectory和GetSystemDirectory函数分别取得Windows路径和系 统路径 this.treeView1.ImageList=this.imageList1; TreeNode SysTreeNode; SysTreeNode=new TreeNode("计算机系统"); SysTreeNode.ImageIndex=8; SysTreeNode.SelectedImageIndex=8; this.treeView1.Nodes.Add(SysTreeNode); TreeNode NewTreeNode; string str; str= "用户名:" + SystemInformation.UserName ; NewTreeNode= new TreeNode(str); NewTreeNode.ImageIndex=7; NewTreeNode.SelectedImageIndex=7; SysTreeNode.Nodes.Add(NewTreeNode); str= "计算机名:" + SystemInformation.ComputerName; NewTreeNode= new TreeNode(str); NewTreeNode.ImageIndex=6; NewTreeNode.SelectedImageIndex=6; SysTreeNode.Nodes.Add(NewTreeNode); //获取操作系统的版本信息 Process MyProcess= new Process(); //设定程序名 MyProcess.StartInfo.FileName = "cmd.exe"; //关闭Shell的使用 MyProcess.StartInfo.UseShellExecute = false; //重定向标准输入 MyProcess.StartInfo.RedirectStandardInput = true; //重定向标准输出 MyProcess.StartInfo.RedirectStandardOutput = true; //重定向错误输出 MyProcess.StartInfo.RedirectStandardError = true; //设置不显示窗口 MyProcess.StartInfo.CreateNoWindow = true; //执行VER命令 MyProcess.Start(); MyProcess.StandardInput.WriteLine("Ver"); MyProcess.StandardInput.WriteLine("exit"); //从输出流获取命令执行结果, string StrInfo= MyProcess.StandardOutput.ReadToEnd(); //str= "操作系统:" + Environment.OSVersion.Platform; StrInfo= "操作系统:" + StrInfo; NewTreeNode= new TreeNode(StrInfo.Substring(0,StrInfo.IndexOf("Corp.")+5)); NewTreeNode.ImageIndex=5; NewTreeNode.SelectedImageIndex=5; SysTreeNode.Nodes.Add(NewTreeNode); str= "版本号:" + Environment.OSVersion.Version; NewTreeNode= new TreeNode(str); NewTreeNode.ImageIndex=4; NewTreeNode.SelectedImageIndex=4; SysTreeNode.Nodes.Add(NewTreeNode); str= "NetBIOS的名称:" + Environment.MachineName; NewTreeNode= new TreeNode(str); NewTreeNode.ImageIndex=3; NewTreeNode.SelectedImageIndex=3; SysTreeNode.Nodes.Add(NewTreeNode); const int nChars = 128; StringBuilder Buff = new StringBuilder(nChars); GetWindowsDirectory(Buff,nChars); string WindowsDirectory = "Windows路径:"+Buff.ToString(); NewTreeNode= new TreeNode(WindowsDirectory); NewTreeNode.ImageIndex=2; NewTreeNode.SelectedImageIndex=2; SysTreeNode.Nodes.Add(NewTreeNode); GetSystemDirectory(Buff,nChars); string SystemDirectory = "系统路径:"+Buff.ToString(); NewTreeNode= new TreeNode(SystemDirectory); NewTreeNode.ImageIndex=1; NewTreeNode.SelectedImageIndex=1; SysTreeNode.Nodes.Add(NewTreeNode); //调用GetSystemInfo函数获取CPU的相关信息 CPU_INFO CpuInfo; CpuInfo = new CPU_INFO(); GetSystemInfo(ref CpuInfo); TreeNode DriverTreeNode; DriverTreeNode=new TreeNode("计算机设备"); DriverTreeNode.ImageIndex=39; DriverTreeNode.SelectedImageIndex=39; this.treeView1.Nodes.Add(DriverTreeNode); string NumberOfProcessors = "本计算机中有"+CpuInfo.dwNumberOfProcessors.ToString()+"个CPU"; NewTreeNode= new TreeNode(NumberOfProcessors); DriverTreeNode.Nodes.Add(NewTreeNode); string ProcessorType = "CPU的类型为"+CpuInfo.dwProcessorType.ToString(); NewTreeNode= new TreeNode(ProcessorType); DriverTreeNode.Nodes.Add(NewTreeNode); string ProcessorLevel= "CPU等级为"+CpuInfo.dwProcessorLevel.ToString(); NewTreeNode= new TreeNode(ProcessorLevel); DriverTreeNode.Nodes.Add(NewTreeNode); string OemId = "CPU的OEM ID为"+CpuInfo.dwOemId.ToString(); NewTreeNode= new TreeNode(OemId); DriverTreeNode.Nodes.Add(NewTreeNode); string PageSize = "CPU中的页面大小为"+CpuInfo.dwPageSize.ToString(); NewTreeNode= new TreeNode(PageSize); DriverTreeNode.Nodes.Add(NewTreeNode); //调用GlobalMemoryStatus函数获取内存的相关信息 MEMORY_INFO MemInfo; MemInfo = new MEMORY_INFO(); GlobalMemoryStatus(ref MemInfo); string MemoryLoad = MemInfo.dwMemoryLoad.ToString()+"%的内存正在使用"; NewTreeNode= new TreeNode(MemoryLoad); DriverTreeNode.Nodes.Add(NewTreeNode); string TotalPhys = "物理内存共有"+MemInfo.dwTotalPhys.ToString()+"字节"; NewTreeNode= new TreeNode(TotalPhys); DriverTreeNode.Nodes.Add(NewTreeNode); string AvailPhys = "可使用的物理内存有"+MemInfo.dwAvailPhys.ToString()+" 字节"; NewTreeNode= new TreeNode(AvailPhys); DriverTreeNode.Nodes.Add(NewTreeNode); string TotalPageFile = "交换文件总大小为 "+MemInfo.dwTotalPageFile.ToString()+"字节"; NewTreeNode= new TreeNode(TotalPageFile); DriverTreeNode.Nodes.Add(NewTreeNode); string AvailPageFile = "尚可交换文件大小为 "+MemInfo.dwAvailPageFile.ToString()+"字节"; NewTreeNode= new TreeNode(AvailPageFile); DriverTreeNode.Nodes.Add(NewTreeNode); string TotalVirtual = "总虚拟内存有"+MemInfo.dwTotalVirtual.ToString()+" 字节"; NewTreeNode= new TreeNode(TotalVirtual); DriverTreeNode.Nodes.Add(NewTreeNode); string AvailVirtual = "未用虚拟内存有"+MemInfo.dwAvailVirtual.ToString()+"字节"; NewTreeNode= new TreeNode(AvailVirtual); DriverTreeNode.Nodes.Add(NewTreeNode); //调用GetSystemTime函数获取系统时间信息 SYSTEMTIME_INFO StInfo; StInfo = new SYSTEMTIME_INFO(); GetSystemTime(ref StInfo); string Date= StInfo.wYear.ToString()+"年"+StInfo.wMonth.ToString()+"月 "+StInfo.wDay.ToString()+"日"; NewTreeNode= new TreeNode(Date); DriverTreeNode.Nodes.Add(NewTreeNode); string Time= (StInfo.wHour+8).ToString()+"点"+StInfo.wMinute.ToString()+"分"+StInfo.wSecond.ToString()+"秒"; NewTreeNode= new TreeNode(Time); DriverTreeNode.Nodes.Add(NewTreeNode); //this.treeView1.ExpandAll(); } 4.4.3.4.1 功能函数设计 一、函数基本属性设置 函数 参数 说明 系统事件 系统信息总揽 m_butAllSysInfo_Click 二、函数代码实现 通过Button控件的响应事件达到系统信息总揽. , m_butAllSysInfo_Click private void m_butAllSysInfo_Click(object sender, System.EventArgs e) { //MessageBox.Show("系统信息总览"); this.treeView1.Nodes.Clear(); InitGetSysInfo(); //this.treeView1.ExpandAll(); this.panel5.Show(); this.panel7.Hide(); this.panel8.Hide(); this.panel9.Hide(); this.panel10.Hide(); this.panel11.Hide(); this.panel12.Hide(); this.panel13.Hide(); this.panel14.Hide(); this.panel15.Hide(); } 三、模块运行结果 4.4.3.4.2 启动信息界面 显示公司的信息,通过各种多媒体信息的运用,对用户视觉的感观,来达到对公司品牌 的宣传效果。 一、 PictureBox常用属性设置 属性分类 属性名称 取值 说明 布局 Dock Fill 填充其停靠位置 边框 BorderStyle FixedSingle PictureBox的边框类型 背景图片 BackgroundImage Bitmap PictureBox的背景图片 二、PictureBox视图代码 private void Myload_Load(object sender, System.EventArgs e) { pictureBox1.Image=Image.FromFile(Directory.GetCurrentDirectory().ToString()+"/Myload .gif"); timer1.Tick+=new EventHandler(timer1_Tick); timer1.Start(); } 4.4.3.4.3 功能函数设计 一、函数基本属性设置 函数 参数 说明 timer1_Tick 系统事件 启动界面显示公司信息时初始停留时间 二、函数代码实现 通过timer控件的响应事件来控制启动界面的初始停留时间. , timer1_Tick private void timer1_Tick(object sender, System.EventArgs e) { a=a+1; this.Opacity=Opacity+0.1; if(a==5) { if(Opacity==1) { timer1.Stop(); } Wopti df=new Wopti(); df.Show(); this.Hide(); } } 三、模块运行结果 4.4.3.5 处理器与主板 检测电脑的CPU、BIOS、主板(包括芯片组、主板插槽、接口等)、系统制造商、芯片、 总线、设备等各种信息。 一、Panel常用属性设置 属性分类 属性名称 取值 说明 布局 Dock None 填充其停靠位置 边框 Location 4,224 对其容器的位置 大小 Size 136,295 控件大小 ImageList常用属性设置 属性分类 属性名称 取值 说明 图象 Images Bitmap 存储在其中的图象 边框 ImageSize 32,32 图象的大小 背景图片 TransparentColor Transparent 被视为透明的颜色 ListView常用属性设置 属性分类 属性名称 取值 说明 布局 Dock Fill 填充其停靠位置 边框 BorderStyle FixedSingle PictureBox的边框类型 节点 Nodes 树控件中节点数 背景图片 ImageList Bitmap 节点的图片设置 二、ListView视图代码 public void InsertInfo(string Key, ref ListView lst, bool DontInsertNull) { lst.Items.Clear(); ManagementObjectSearcher searcher = new ManagementObjectSearcher("select * from " + Key); try { foreach (ManagementObject share in searcher.Get()) { if (share.Properties.Count <= 0) { MessageBox.Show("No Information Available", "No Info", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } foreach (PropertyData PC in share.Properties) { ListViewItem item = new ListViewItem("Name"); if (lst.Items.Count % 2 != 0) item.BackColor = Color.White; else item.BackColor = Color.WhiteSmoke; item.Text = PC.Name; if (PC.Value != null && PC.Value.ToString() != "") { switch (PC.Value.GetType().ToString()) { case "System.String[]": string[] str = (string[])PC.Value; string str2 = ""; foreach (string st in str) str2 += st + " "; item.SubItems.Add(str2); break; case "System.UInt16[]": ushort[] shortData = (ushort[])PC.Value; string tstr2 = ""; foreach (ushort st in shortData) tstr2 += st.ToString() + " "; item.SubItems.Add(tstr2); break; default: item.SubItems.Add(PC.Value.ToString()); break; } } else { if (!DontInsertNull) item.SubItems.Add("No Information available"); else continue; } lst.Items.Add(item); } } } catch (Exception exp) { MessageBox.Show("can't get data because of the followeing error \n" + exp.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } } 4.4.3.5.1 功能函数设计 一、函数基本属性设置 函数 参数 说明 HardwareInfo_Click 系统事件 显示处理器与主板信息 二、函数代码实现 通过Button控件的响应事件来得到系统硬件信息. , HardwareInfo_Click private void HardwareInfo_Click(object sender, System.EventArgs e) { this.panel7.Show(); this.panel6.Hide(); this.panel5.Hide(); this.panel8.Hide(); this.panel9.Hide(); this.panel10.Hide(); this.panel11.Hide(); this.panel12.Hide(); this.panel13.Hide(); this.panel14.Hide(); this.panel15.Hide(); this.panel7.Width=536; this.panel7.Height=448; this.panel7.Location=new Point(16,8); } 三、模块运行结果 4.4.3.6 显卡系统信息 视频系统信息:检测用户的显卡和显示器。 本系统能在未安装显卡驱动时,识别出PCI、AGP、PCI Express接口的显示芯片。检测 出您的显示器的制造商。 一、Panel常用属性设置 属性分类 属性名称 取值 说明 布局 Dock None 填充其停靠位置 边框 Location 4,224 对其容器的位置 大小 Size 136,295 控件大小 ImageList常用属性设置 属性分类 属性名称 取值 说明 图象 Images Bitmap 存储在其中的图象 边框 ImageSize 32,32 图象的大小 背景图片 TransparentColor Transparent 被视为透明的颜色 ListView常用属性设置 属性分类 属性名称 取值 说明 布局 Dock Fill 填充其停靠位置 边框 BorderStyle FixedSingle PictureBox的边框类型 节点 Nodes 树控件中节点数 背景图片 ImageList Bitmap 节点的图片设置 二、ListView视图代码 代码调用与处理器与主板一样 4.4.3.6.1 功能函数设计 一、函数基本属性设置 函数 参数 说明 系统事件 显示显卡系统信息 ShowKaInfo_Click 二、函数代码实现 通过Button控件的响应事件来获得显卡信息. , ShowKaInfo_Click private void ShowKaInfo_Click(object sender, System.EventArgs e) { this.panel5.Hide(); this.panel6.Hide(); this.panel7.Hide(); this.panel8.Hide(); this.panel9.Hide(); this.panel10.Hide(); this.panel11.Hide(); this.panel13.Hide(); this.panel14.Hide(); this.panel15.Hide(); this.panel12.Show(); this.panel12.Width=536; this.panel12.Height=448; this.panel12.Location=new Point(16,8); newSysInfo.InsertInfo("Win32_VideoSettings", ref lstDisplayHardware1,true); int itemNumber=this.lstDisplayHardware1.Items.Count; for(int i=0, m=0; i< itemNumber;i++,m++) { int j=this.imageList1.Images.Count; if(m>j) { m=0; } this.lstDisplayHardware1.Items[i].ImageIndex=m; } } 三、模块运行结果 4.4.3.7 系统进程信息 检测出系统运行进程的各种信息,通过这些信息让用户对系统现在运行的各个进程有一 个比较详细的认识。 一、Panel常用属性设置 属性分类 属性名称 取值 说明 布局 Dock None 填充其停靠位置 边框 Location 4,224 对其容器的位置 大小 Size 136,295 控件大小 ListBox常用属性设置 属性分类 属性名称 取值 说明 布局 Dock Fill 填充其停靠位置 边框 BorderStyle FixedSingle 边框风格类型 背景色 BackColor Info(颜色) 树控件中节点数 4.4.3.7.1 功能函数设计 一、函数基本属性设置 函数 参数 说明 系统事件 显示系统进程信息 SearchProcess_Click 系统事件 显示系统进程详细信息 listBox2_SelectedIndexChanged 二、函数代码实现 通过Button控件的响应事件来得到进程信息. , SearchProcess_Click /// /// 获取系统当前所有进程 /// /// /// private void SearchProcess_Click(object sender, System.EventArgs e) { //获取系统当前所有进程 this.listBox2.Items.Clear(); Process[] MyProcesses=Process.GetProcesses(); foreach(Process MyProcess in MyProcesses) { this.listBox2.Items.Add(MyProcess.ProcessName); } this.listBox2.SelectedIndex=0; } 三、模块运行结果 四、函数代码实现 通过Button控件的响应事件来得到进程的详细信息. , listBox2_SelectedIndexChanged /// /// 显示选择的系统进程详细信息 /// /// /// private void listBox2_SelectedIndexChanged(object sender, System.EventArgs e) { //显示选择的系统进程详细信息 try { string ProcessName=this.listBox2.Text; this.groupBox9.Text=ProcessName+"进程的详细信息"; Process[] MyProcess=Process.GetProcessesByName(ProcessName); this.label24.Text="进程映像名:"+MyProcess[0].ProcessName; this.label23.Text="进程ID:"+MyProcess[0].Id; this.label22.Text="启动线程数:"+MyProcess[0].Threads.Count.ToString(); this.label21.Text="CPU占用时间:"+MyProcess[0].TotalProcessorTime.ToString(); this.label20.Text="线程优先级:"+MyProcess[0].PriorityClass.ToString(); this.label19.Text="启动时间:"+MyProcess[0].StartTime.ToLongTimeString(); this.label18.Text="专用内存: "+(MyProcess[0].PrivateMemorySize/1024).ToString()+"K"; this.label17.Text="峰值虚拟内存:"+(MyProcess[0].PeakVirtualMemorySize/1024).ToString()+"K"; this.label16.Text="峰值分页内存:"+(MyProcess[0].PeakPagedMemorySize/1024).ToString()+"K"; this.label15.Text="分页系统内存:"+(MyProcess[0].PagedSystemMemorySize/1024).ToString()+"K"; this.label11.Text="分页内存: "+(MyProcess[0].PagedMemorySize/1024).ToString()+"K"; this.label12.Text="未分页系统内存:"+(MyProcess[0].NonpagedSystemMemorySize/1024).ToString()+"K"; this.label13.Text="物理内存: "+(MyProcess[0].WorkingSet/1024).ToString()+"K"; this.label14.Text="虚拟内存: "+(MyProcess[0].VirtualMemorySize/1024).ToString()+"K"; } catch(Exception Err) { //不处理产生的异常 } } 五、模块运行结果 4.4.3.8 硬盘系统信息 检测出硬盘的各种信息,包括硬盘的生产厂家,用户硬盘的使用情况和分区的情况以及 其它各种信息显示。 一、Panel常用属性设置 属性分类 属性名称 取值 说明 布局 Dock None 填充其停靠位置 边框 Location 4,224 对其容器的位置 大小 Size 136,295 控件大小 ImageList常用属性设置 属性分类 属性名称 取值 说明 图象 Images Bitmap 存储在其中的图象 边框 ImageSize 32,32 图象的大小 背景图片 TransparentColor Transparent 被视为透明的颜色 ListView常用属性设置 属性分类 属性名称 取值 说明 布局 Dock Fill 填充其停靠位置 边框 BorderStyle FixedSingle PictureBox的边框类型 节点 Nodes 树控件中节点数 背景图片 ImageList Bitmap 节点的图片设置 二、ListView视图代码 代码调用与处理器与主板一样 4.4.3.8.1 功能函数设计 一、函数基本属性设置 函数 参数 说明 系统事件 显示硬盘系统信息 DataInfo_Click 二、函数代码实现 通过Button控件的响应事件来获得硬盘信息. , DataInfo_Click private void DataInfo_Click(object sender, System.EventArgs e) { this.panel5.Hide(); this.panel6.Hide(); this.panel7.Hide(); this.panel8.Hide(); this.panel10.Hide(); this.panel11.Hide(); this.panel12.Hide(); this.panel13.Hide(); this.panel14.Hide(); this.panel15.Hide(); this.panel9.Show(); this.panel9.Width=536; this.panel9.Height=448; this.panel9.Location=new Point(16,8); newSysInfo.InsertInfo("Win32_LogicalDisk", ref lstStorage,true); int itemNumber=this.lstStorage.Items.Count; for(int i=0, m=0; i< itemNumber;i++,m++) { int j=this.imageList1.Images.Count; if(m>j) { m=0; } this.lstStorage.Items[i].ImageIndex=m; } } 三、模块运行结果 4.4.3.9 存储系统信息 检测系统的内存的型号,生产厂家,以及内存的其它的各种信息,使用户对当前内存的 使用情况有一个比较详细的认识。 一、Panel常用属性设置 属性分类 属性名称 取值 说明 布局 Dock None 填充其停靠位置 边框 Location 4,224 对其容器的位置 大小 Size 136,295 控件大小 ImageList常用属性设置 属性分类 属性名称 取值 说明 图象 Images Bitmap 存储在其中的图象 边框 ImageSize 32,32 图象的大小 背景图片 TransparentColor Transparent 被视为透明的颜色 ListView常用属性设置 属性分类 属性名称 取值 说明 布局 Dock Fill 填充其停靠位置 边框 BorderStyle FixedSingle PictureBox的边框类型 节点 Nodes 树控件中节点数 背景图片 ImageList Bitmap 节点的图片设置 二、ListView视图代码 代码调用与处理器与主板一样 4.4.3.9.1 功能函数设计 一、函数基本属性设置 函数 参数 说明 系统事件 显示存储系统信息 MemoryInfo_Click 二、函数代码实现 通过Button控件的响应事件来获得内存信息. , MemoryInfo_Click private void MemoryInfo_Click(object sender, System.EventArgs e) { this.panel5.Hide(); this.panel6.Hide(); this.panel7.Hide(); this.panel8.Hide(); this.panel9.Hide(); this.panel11.Hide(); this.panel12.Hide(); this.panel13.Hide(); this.panel14.Hide(); this.panel15.Hide(); this.panel10.Show(); this.panel10.Width=536; this.panel10.Height=448; this.panel10.Location=new Point(16,8); newSysInfo.InsertInfo("Win32_CacheMemory", ref lstMemory,true); int itemNumber=this.lstMemory.Items.Count; for(int i=0, m=0; i< itemNumber;i++,m++) { int j=this.imageList1.Images.Count; if(m>j) { m=0; } this.lstMemory.Items[i].ImageIndex=m; } } 三、模块运行结果 4.4.3.10 网络信息总揽 检测出用户当前计算机局域网中的信息和广域网的信息以及网卡的各种信息通过列表 显示,使用户通过信息对自己计算机当前网络情况有一个清楚的认识。 一、Panel常用属性设置 属性分类 属性名称 取值 说明 布局 Dock None 填充其停靠位置 边框 Location 4,224 对其容器的位置 大小 Size 136,295 控件大小 ImageList常用属性设置 属性分类 属性名称 取值 说明 图象 Images Bitmap 存储在其中的图象 边框 ImageSize 32,32 图象的大小 背景图片 TransparentColor Transparent 被视为透明的颜色 ListView常用属性设置 属性分类 属性名称 取值 说明 布局 Dock Fill 填充其停靠位置 边框 BorderStyle FixedSingle PictureBox的边框类型 节点 Nodes 树控件中节点数 背景图片 ImageList Bitmap 节点的图片设置 二、ListView视图代码 代码调用与处理器与主板一样 4.4.3.10.1 功能函数设计 一、函数基本属性设置 函数 参数 说明 系统事件 显示网络信息总揽 network_Click 二、函数代码实现 通过Button控件的响应事件来获得网络信息. , network_Click private void network_Click(object sender, System.EventArgs e) { this.panel5.Hide(); this.panel6.Hide(); this.panel7.Hide(); this.panel8.Show(); this.panel9.Hide(); this.panel10.Hide(); this.panel11.Hide(); this.panel12.Hide(); this.panel13.Hide(); this.panel14.Hide(); this.panel15.Hide(); this.panel8.Width=536; this.panel8.Height=448; this.panel8.Location=new Point(16,8); newSysInfo.InsertInfo("Win32_VideoController", ref lstNetwork,true); int itemNumber=this.lstNetwork.Items.Count; for(int i=0, m=0; i< itemNumber;i++,m++) { int j=this.imageList1.Images.Count; if(m>j) { m=0; } this.lstNetwork.Items[i].ImageIndex=m; } } 三、模块运行结果 4.4.3.11 其它设备信息 检测用户当前计算机中的键盘、鼠标、USB控制器、打印机、即插即用设备信息的显 示,让用户对计算机的设置有个了解。 一、Panel常用属性设置 属性分类 属性名称 取值 说明 布局 Dock None 填充其停靠位置 边框 Location 4,224 对其容器的位置 大小 Size 136,295 控件大小 ImageList常用属性设置 属性分类 属性名称 取值 说明 图象 Images Bitmap 存储在其中的图象 边框 ImageSize 32,32 图象的大小 背景图片 TransparentColor Transparent 被视为透明的颜色 ListView常用属性设置 属性分类 属性名称 取值 说明 布局 Dock Fill 填充其停靠位置 边框 BorderStyle FixedSingle PictureBox的边框类型 节点 Nodes 树控件中节点数 背景图片 ImageList Bitmap 节点的图片设置 二、ListView视图代码 代码调用与处理器与主板一样 4.4.3.11.1 功能函数设计 一、函数基本属性设置 函数 参数 说明 系统事件 显示其它系统信息 OtherInfo_Click 二、函数代码实现 通过Button控件的响应事件来显示其它系统信息. , OtherInfo_Click private void OtherInfo_Click(object sender, System.EventArgs e) { this.panel5.Hide();//系统信息 this.panel6.Hide();//多功能关机 this.panel7.Hide();//处理器与主板 this.panel8.Hide();//网络信息 this.panel9.Hide();//硬盘系统信息 this.panel10.Hide();//存储信息 this.panel12.Hide();//显卡信息 this.panel13.Hide(); this.panel14.Hide(); this.panel15.Hide(); this.panel11.Show();//其它设备信息 this.panel11.Width=536; this.panel11.Height=448; this.panel11.Location=new Point(16,8); newSysInfo.InsertInfo("Win32_Account", ref lstUserAccount,true); int itemNumber=this.lstUserAccount.Items.Count; for(int i=0, m=0; i< itemNumber;i++,m++) { int j=this.imageList1.Images.Count; if(m>j) { m=0; } this.lstUserAccount.Items[i].ImageIndex=m; } } 三、模块运行结果 4.4.3.12 多功能关机 该程序具有:定时关机、倒计时关机、关机提醒、系统信息获取等四项功能, 可设定关机时间精确到秒。 一、界面运行结果 二 界面效果代码如下: const int SHUTDOWN = 1 ; const int REBOOT = 2 ; const int LOGOFF = 0 ; long sh ; /// /// 多功能关机器 /// /// /// private void button35_Click(object sender, System.EventArgs e) { this.panel1.Hide(); this.panel2.Hide(); this.panel3.Hide(); this.panel4.Show(); this.panel5.Hide(); this.panel6.Show(); this.panel7.Hide(); this.panel8.Hide(); this.panel9.Hide(); this.panel10.Hide(); this.panel11.Hide(); this.panel12.Hide(); this.panel13.Hide(); this.panel14.Hide(); this.panel15.Hide(); this.panel6.Width=536; this.panel6.Height=448; this.panel6.Location=new Point(16,8); } /// /// 关闭机算机 /// private void ColseComputer( ) { sh = ExitWindowsEx(SHUTDOWN, dwReserved) ; } /// /// 取消操作 /// /// /// private void ButCancle_Click(object sender, System.EventArgs e) { this.Close( ) ; } /// /// 重启机算机 /// /// /// private void ButReOpen_Click(object sender, System.EventArgs e) { sh = ExitWindowsEx(REBOOT, dwReserved) ; } /// /// 关闭机算机 /// /// /// private void ButClose_Click(object sender, System.EventArgs e) { sh = ExitWindowsEx(REBOOT, dwReserved) ; } /// /// 注销机算机 /// /// /// private void ButReLogin_Click(object sender, System.EventArgs e) { sh = ExitWindowsEx(LOGOFF, dwReserved) ; } /// /// 时间显示与比对 /// /// /// private void timer1_Tick(object sender, System.EventArgs e) { //接收当前日期和时间,用于即时显示 string CurrDate=System.DateTime.Today.ToShortDateString( ) ; string CurrTime=System.DateTime.Today.ToShortTimeString( ) ; //随时检测设定的关机日期和时间是否有效 if( this.checkBox1.Checked == true ) { if(CurrTime== SetupDate.ToString( ) && CurrDate==SetupTime.ToString( ) ) ColseComputer( ) ; } } 4.4.3.13 垃圾文件清理 一些应用程序在删除后,没有删除注册表中的相关信息,导致注册表越来越臃肿。日积 月累,这些冗余信息不仅影响了注册表本身的存取效率,还会导致系统整体性能的降低。因 此,Windows用户有必要定期清理注册表。 一 垃圾文件清理界面效果如下: 二 点击垃圾文件清理代码如下: /// /// 垃圾文件处理 /// /// /// private void recycleClear_Click(object sender, System.EventArgs e) { this.panel5.Hide(); this.panel6.Hide(); this.panel7.Hide(); this.panel8.Hide(); this.panel9.Hide(); this.panel10.Hide(); this.panel11.Hide(); this.panel12.Hide(); this.panel14.Hide(); this.panel15.Hide(); this.panel13.Show(); this.panel13.Width=536; this.panel13.Height=448; this.panel13.Location=new Point(16,8); } 三 点击清空回收站指定内容按钮操作效果如下: 四 ComBox选择操作代码如下: /// /// 选择不同逻辑驱动器中的回收站 /// /// /// private void comboBox1_SelectedIndexChanged(object sender, System.EventArgs e) { //选择不同逻辑驱动器中的回收站 if(this.treeClear.Nodes.Count>0) this.treeClear.Nodes.RemoveAt(0); string MyDriver=(string)this.comboBox1.SelectedItem; this.treeClear.Nodes.Add(new TreeNode(MyDriver+"RECYCLED",1,1)); string MyPath=MyDriver+"RECYCLED"; string[] MyDirs=null; string[] MyFiles=null; try { //获得指定路径文件夹的名称 MyDirs=Directory.GetDirectories(MyPath); } catch(Exception Err) { MessageBox.Show("读取文件夹发生错误~","信息提示",MessageBoxButtons.OK,MessageBoxIcon.Information); return; } if (MyDirs!=null) { //为每一个节点添加子节点 for (int j=0;j /// 清空回收站里指定的文件或文件夹 /// /// /// private void button1_Click(object sender, System.EventArgs e) {//清空回收站里指定的文件或文件夹 TreeNode CurrentNode=this.treeClear.SelectedNode; TreeNode MyDeletedNode=CurrentNode; if(CurrentNode==null) { MessageBox.Show("请首先选择要清空的文件夹或文件~","信息提示 ",MessageBoxButtons.OK,MessageBoxIcon.Information); return; } string MyPath=CurrentNode.Text; CurrentNode=CurrentNode.Parent; while(CurrentNode!=null) { string TempStr=CurrentNode.Text; TempStr+="\\"+MyPath; MyPath=TempStr; CurrentNode=CurrentNode.Parent; } if(MyPath.Length<12) { MessageBox.Show("回收站文件夹不能被删除~","信息提示",MessageBoxButtons.OK,MessageBoxIcon.Information); return; } try { if(Directory.Exists(MyPath)) { if(MessageBox.Show("是否清空文件夹:"+MyPath,"信息提示",MessageBoxButtons.YesNo,MessageBoxIcon.Question)==DialogResult.Yes) { Directory.Delete(MyPath,true); MessageBox.Show("清空回收站里的文件夹:"+MyPath+" 操作成功~"," 信息提示",MessageBoxButtons.OK,MessageBoxIcon.Information); this.treeClear.Nodes.Remove(MyDeletedNode); return; } } if(File.Exists(MyPath)) { if(MessageBox.Show("是否清空文件:"+MyPath,"信息提示",MessageBoxButtons.YesNo,MessageBoxIcon.Question)==DialogResult.Yes) { File.Delete(MyPath); MessageBox.Show("清空回收站里的文件:"+MyPath+" 操作成功~","信息 提示",MessageBoxButtons.OK,MessageBoxIcon.Information); this.treeClear.Nodes.Remove(MyDeletedNode); return; } } } catch(Exception Err) { MessageBox.Show("清空回收站操作发生错误:"+Err.Message,"信息提示",MessageBoxButtons.OK,MessageBoxIcon.Information); return; } } 六 清空回收站所有内容界面运行效果如下: 七 清空回收站所有内容界面运行效果代码如下: /// /// 清空回收站所有内容 /// /// /// private void button2_Click(object sender, System.EventArgs e) {//清空回收站所有内容 if(MessageBox.Show("是否清空系统回收站里面的所有内容,","信息提示",MessageBoxButtons.YesNo,MessageBoxIcon.Question)==DialogResult.No) { return; } //获取计算机上逻辑驱动器的名称 string[] drivers=Directory.GetLogicalDrives(); int i=drivers.Length; //对每个逻辑驱动器上的回收站都要清空 foreach (string driver in drivers) { try { string[] MyFiles=Directory.GetFiles(driver+"\\Recycled"); //首先清空回收站下单独的文件 if (MyFiles.Length!=0) { foreach (string MyFile in MyFiles) { File.Delete(MyFile); } } string[] MyFolders=Directory.GetDirectories(driver+"\\Recycled"); //清空回收站下的文件夹 if (MyFolders.Length!=0) { foreach (string MyFolder in MyFolders) { Directory.Delete(MyFolder,true); } } } catch(Exception Err) { //不加入任何的事件处理 } } if(this.treeClear.Nodes.Count>0) this.treeClear.Nodes.RemoveAt(0); MessageBox.Show("清空回收站操作成功~","信息提示",MessageBoxButtons.OK,MessageBoxIcon.Information); } /// /// 读取文件夹信息被调用方法 /// /// /// private void MyAddTreeNodeFunction(TreeNode node,string MyPath) {//增加树节点 string[] MyDirs=null; string[] MyFiles=null; try { MyDirs=Directory.GetDirectories(MyPath); } catch(Exception Err) { MessageBox.Show("读取文件夹信息发生错误~","信息提示 ",MessageBoxButtons.OK,MessageBoxIcon.Information); return; } for (int j=0;j /// 垃圾文件扫描处理节点展开事件 /// /// /// private void treeClear_BeforeExpand(object sender, System.Windows.Forms.TreeViewCancelEventArgs e) { //处理节点展开事件 //获取发出信息的节点 TreeNode CurrentNode=e.Node; //设置它为treeView的当前节点 this.treeClear.SelectedNode=CurrentNode; string MyPath=CurrentNode.FullPath; string[] MyDirs=null; try { //获得当前节点所有的子节点 MyDirs=Directory.GetDirectories(MyPath); } catch(Exception error) { MessageBox.Show("读取文件夹信息发生错误~","信息提示",MessageBoxButtons.OK,MessageBoxIcon.Information); return; } if (MyDirs!=null) { //为每一个当前节点的字节点添加子节点 for (int j=0;j /// 软件智能扫描 /// /// /// private void renwu_Click(object sender, System.EventArgs e) { this.panel5.Hide(); this.panel6.Hide(); this.panel7.Hide(); this.panel8.Hide(); this.panel9.Hide(); this.panel10.Hide(); this.panel11.Hide(); this.panel12.Hide(); this.panel13.Hide(); this.panel15.Hide(); this.panel14.Show(); this.panel14.Width=536; this.panel14.Height=448; this.panel14.Location=new Point(16,8); //打开"SOFTWARE"子键 RegistryKey hklm = Registry.LocalMachine; RegistryKey software = hklm.OpenSubKey("SOFTWARE"); foreach (string site in software.GetSubKeyNames()) //开始遍历由子键名称组成的字符串数组 { listBox1.Items.Add(site); //在列表中加入子键名称 RegistryKey sitekey = software.OpenSubKey(site); } int itemNumber = listBox1.Items.Count; for(int i=0, m=0; ij) { m=0; } this.listBox1.Items[i].ImageIndex=m; } } 4.4.3.15 开机速度优化 通过扫描得出用户开机启动项目,用户在确定要取消的开机自启动程序后,在该项目前 的选择框内打上勾,然后单击“优化”按钮,即可清除该自启动程序。 一 开机速度优化界面效果如下: 二 开机速度优化界面效果代码如下: /// /// 开机速度优化 /// /// /// private void speedbest_Click(object sender, System.EventArgs e) { this.panel5.Hide(); this.panel6.Hide(); this.panel7.Hide(); this.panel8.Hide(); this.panel9.Hide(); this.panel10.Hide(); this.panel11.Hide(); this.panel12.Hide(); this.panel13.Hide(); this.panel14.Hide(); this.panel15.Show(); this.panel15.Width=536; this.panel15.Height=448; this.panel15.Location=new Point(16,8); } 三 点击查看启动项界面效果如下: 四 点击查看启动项界面效果代码如下: /// /// 查看启动项 /// /// /// private void lookup_Click(object sender, System.EventArgs e) { this.listView1.Items.Clear(); RegistryKey rkLocalM ; rkLocalM = Registry.LocalMachine; ShowRegInfo(rkLocalM,"s"); rkLocalM = Registry.CurrentUser; ShowRegInfo(rkLocalM,"u"); } /// /// 查看注册表信息被调用的方法 /// /// /// private void ShowRegInfo(RegistryKey rkLocalM,string su) { string strSubKey = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; RegistryKey rkSub = rkLocalM.OpenSubKey( strSubKey ); string[] strData = rkSub.GetValueNames(); for( int i = 0; i < strData.Length; i++ ) { item1= new ListViewItem(strData[i],i); item1.Checked = flase; item1.SubItems.Add(string.Format( "{0}",rkSub.GetValue( strData[i] ))); if(su=="s") { item1.SubItems.Add(@"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"); } else { item1.SubItems.Add(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run"); } listView1.Items.AddRange(new ListViewItem[]{item1}); } rkLocalM.Close(); } 五 点击删除启动项界面效果如下: 六 点击删除启动项界面效果代码如下: /// /// 删除启动项 /// /// /// private void delup_Click(object sender, System.EventArgs e) { if(MessageBox.Show("是否删除您所选的启动项,","信息提示",MessageBoxButtons.YesNo,MessageBoxIcon.Question)==DialogResult.Yes) { RegistryKey rkLocalM = Registry.LocalMachine; for(int i=0;i< listView1.Items.Count;i++) { if(this.listView1.Items[i].Checked==true) { DelRegInfo(listView1.Items[i].Text); MessageBox.Show("删除启动项成功~","信息提示",MessageBoxButtons.OK,MessageBoxIcon.Information); } } } } /// /// 删除注册表信息被调用的方法 /// /// private void DelRegInfo(string name) { RegistryKey rkLocalM = Registry.LocalMachine; try { string strSubKey = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; RegistryKey rkSub = rkLocalM.OpenSubKey( strSubKey ,true); string[] strData = rkSub.GetValueNames(); //MessageBox.Show(strData.Length.ToString()); for( int i = 0; i < strData.Length; i++ ) { if(name==strData[i]) { rkSub.DeleteValue( name, false ); break; } else { rkLocalM = Registry.CurrentUser; strSubKey = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; rkSub = rkLocalM.OpenSubKey( strSubKey ,true); string[] struData = rkSub.GetValueNames(); for( int j = 0; j < struData.Length; j++ ) { if(name==struData[j]) { rkSub.DeleteValue( name, false ); break; } } } } } catch(Exception e) { MessageBox.Show(e.Message.ToString()); } rkLocalM.Close(); } 4.4.3.16 主要清理区功能: 通过扫描得到用户计算机中的网络历史痕迹、Windows使用痕迹点击删除来清理扫描得 出的垃圾信息。 一 界面效果如下: 二 IE浏览器信息的清理主操作界面: 三 IE扫描部分扫描运行结果: 四 IE扫描部分主要核心代码: /// /// 扫描IE网址输入下拉列表中的网址 /// /// /// private void SearchIEList_Click(object sender, System.EventArgs e) { listView2.Items.Clear(); RegistryKey myRKCN = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Internet Explorer\TypedURLs\",true); foreach (string site in myRKCN.GetValueNames()) { string site1=myRKCN.GetValue(site).ToString(); this.listView2.Items.Add(site1); } try { if(this.j == 0) { this.filecount = 0; this.nt = new Thread(new ThreadStart(this.Begin1)); this.nt.Start(); this.i = 0; this.j = 1; } else { if((this.nt.ThreadState & System.Threading.ThreadState.Suspended) == System.Threading.ThreadState.Suspended) { this.nt.Resume(); this.nt.Abort(); } else { this.nt.Abort(); } this.j = 0; } } catch(Exception ee) { label25.Text = ee.Message; } } 五 IE信息全选部分运行结果: 六 IE信息全选或反选代码: /// /// 全选IE浏览器列表 /// /// /// private void IsCheck_Click(object sender, System.EventArgs e) { try { if(ischeck==false) { for (int i=0; i /// 清除IE网址输入下拉列表中的网址 /// /// /// private void ielistClear_Click(object sender, System.EventArgs e) { RegistryKey myRKCN = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Internet Explorer\TypedURLs\",true); foreach (string site in myRKCN.GetValueNames()) { string site1=myRKCN.GetValue(site).ToString(); for (int i=0; i /// 设置IE窗口标题 /// private void ieTitle_Click(object sender, System.EventArgs e) { if(textBox1.Text.Trim()==null||textBox1.Text.Trim()=="") { MessageBox.Show("您更改的IE窗口标题不能为空~~~"); } else { RegistryKey myRKCN = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Internet Explorer\Main\",true); foreach (string site in myRKCN.GetValueNames()) { if (site == "Window Title") { //MessageBox.Show(site); myRKCN.DeleteValue(site, false); myRKCN.SetValue("Wallpaper", this.textBox1.Text); } else { //myRKCN.CreateSubKey("Window Title"); myRKCN.SetValue("Window Title", this.textBox1.Text); continue; } } MessageBox.Show("修改成功"); } } 十三 系统个性化设置运行效果: 扫描得出用户计算机的用户名,注册组织名,等信息。通过点击更改事件来设置包括更改注册组织名、更改注册用户名、更改计算机名称、等其它标志等 十四 获得系统信息代码: //获取注册组织名称 RegistryKey myRKCN = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows NT\\CurrentVersion"); foreach (string myCpName in myRKCN.GetValueNames()) { if (myCpName == "RegisteredOrganization") { this.txtregName.Text = myRKCN.GetValue(myCpName).ToString(); } else { continue; } } //获取注册用户名称 myRKCN = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows NT\\CurrentVersion"); foreach (string myCpName in myRKCN.GetValueNames()) { if (myCpName == "RegisteredOwner") { this.txtOrgname.Text = myRKCN.GetValue(myCpName).ToString(); } else { continue; } } //获取计算机名称 myRKCN = Registry.LocalMachine.OpenSubKey("SYSTEM\\ControlSet001\\Services\\Tcpip\\Parameters"); foreach (string myCpName in myRKCN.GetValueNames()) { if (myCpName == "NV Hostname") { this.txtName.Text = myRKCN.GetValue(myCpName).ToString(); } else { continue; } } 更改系统设置时的防止用户填写空值处理:十五 防止用户数据为空代码如下: if(textBox4.Text.Trim()==null||textBox4.Text.Trim()=="") { MessageBox.Show("您更改的计算机名称不能为空~~~"); } 修改成功后点击我的电脑后的运行效果: 点击浏览Button后运行界面: 修改启动图片代码: /// /// 确定修改启动图片 /// /// /// private void updatePhoto_Click(object sender, System.EventArgs e) { if(textBox2.Text.Trim()==null||textBox2.Text.Trim()=="") { MessageBox.Show("您更改的启动图片不能为空~~~"); } else { RegistryKey myRKCN = Registry.Users.OpenSubKey(@".DEFAULT\Control Panel\Desktop",true); foreach (string site in myRKCN.GetValueNames()) { if (site == "Wallpaper") { //MessageBox.Show(site); myRKCN.DeleteValue(site, false); myRKCN.SetValue("Wallpaper", this.textBox2.Text); } else { continue; } } MessageBox.Show("修改启动图片成功"); } } 十六 历史痕迹清理: 注册表说明: 随着您在计算机中不断地添加和删除程序,注册表一定会越来越庞大,并留下很多的垃圾键值,所以我们需要清除这些垃圾,让注册表回复以往干干净净的状态。 首先,您需要在"注册表清理设置"中选择需要清理的注册表键值的类型。然后,点击左面的"扫描"键,当扫描完毕后,那些垃圾键值会出现在下面的方框中。您可以选择部分删除, 也可选择全部删除。 listViewItem集合编辑器快属性与设置参数 扫描用户所选的信息与进度条的显示效果: 扫描运行代码: 函数 参数 说明 系统事件 显示其它系统信息 Startlook_Click Begin 无 得到用户选择信息 GetPath string str 扫描信息取得路径 dir DirectoryInfo d 用递归来达到扫描的目的 /// /// 开始扫描引入的命名空间 /// using System.Diagnostics; using System.Threading; using Microsoft.Win32; //操作注册表要用的名称空间 using System.IO; /// /// 开始扫描声明的变量 /// private Thread nt; private int i = 0; private int filecount = 0; private int j = 0; /// /// 开始扫描 /// /// /// private void Startlook_Click(object sender, System.EventArgs e) { this.StartMoreView.Items.Clear(); try { if(this.j == 0) { this.filecount = 0; this.nt = new Thread(new ThreadStart(this.Begin)); this.nt.Start(); this.Pratlook.Enabled = true; this.i = 0; this.j = 1; } else { if((this.nt.ThreadState & System.Threading.ThreadState.Suspended) == System.Threading.ThreadState.Suspended) { this.nt.Resume(); this.nt.Abort(); } else { this.nt.Abort(); } this.j = 0; this.Pratlook.Enabled = false; } } catch(Exception ee) { lookmore.Text = ee.Message; } } /// /// 扫描//用来完成关键功能的函数 /// private void Begin()//用来完成关键功能的函数 { try { for (int i=0; i 记录 混凝土 养护记录下载土方回填监理旁站记录免费下载集备记录下载集备记录下载集备记录下载 中的冗余信息 ") { string str = @"C:\Documents and Settings\Administrator\Recent"; GetPath(str); } if(this.listRcy.Items[i].Text==" 扫描IE缓存中的冗余信息 ") { string str = @"C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5"; GetPath(str); } } } } catch(Exception ee) { this.lookmore.Text = ee.Message; } this.lookmore.Text= "扫描完毕~"; this.Pratlook.Enabled = false; this.j = 0; } /// /// 扫描信息取得路径 /// /// private void GetPath(string str) { if(File.Exists(str)) { FileInfo f = new FileInfo(str); this.lookmore.Text = f.FullName; } else if(Directory.Exists(str)) { DirectoryInfo d = new DirectoryInfo(str); this.dir(d);//调用dir函数 } else { this.lookmore.Text = "什么也不是~"; } } /// /// 用户信息//用递归来达到扫描的目的 /// /// private void dir(DirectoryInfo d)//用递归来达到扫描的目的 { try { FileInfo[] f = d.GetFiles(); foreach(FileInfo fi in f) { this.lookmore.Text = fi.FullName; this.StartMoreView.Items.Add(fi.FullName); this.StartMoreView.Items[filecount].Checked=true; this.filecount +=1; this.lookmore.Text += this.filecount.ToString(); //MessageBox.Show(this.textBox1.Text); //显示一个路径停一下再显示一个路径再停一下...... } DirectoryInfo[] ds = d.GetDirectories(); foreach(DirectoryInfo dirs in ds) { dir(dirs);//开始递归 } } catch(Exception ee) { this.lookmore.Text = ee.Message; } } 暂停部分代码: /// /// 扫描信息继续.暂停 /// /// /// private void Pratlook_Click(object sender, System.EventArgs e) { if(this.i == 0) { this.nt.Suspend(); this.i = 1; this.Pratlook.Text = "继续"; } else { this.nt.Resume(); this.i = 0; this.Pratlook.Text = "暂停"; } } 删除扫描信息运行效果: 删除扫描信息代码: /// /// 删除扫描信息 /// /// /// private void DelMore_Click(object sender, System.EventArgs e) { if(MessageBox.Show("是否删除您所选历史痕迹信息,","信息提示",MessageBoxButtons.YesNo,MessageBoxIcon.Question)==DialogResult.Yes) { for(int i=0;i
本文档为【精品windows优化巨匠(书)】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_737483
暂无简介~
格式:doc
大小:1MB
软件:Word
页数:0
分类:互联网
上传时间:2018-04-15
浏览量:13