📄 frmmain.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Text;
using System.IO;
namespace ShInfo
{
/// <summary>
/// frmMain 的摘要说明。
/// </summary>
public class frmMain : System.Windows.Forms.Form
{
private System.Windows.Forms.MainMenu mainMenu1;
private System.Windows.Forms.MenuItem menuItem1;
private System.Windows.Forms.MenuItem menuItem2;
private System.Windows.Forms.MenuItem menuItem3;
private System.Windows.Forms.MenuItem menuItem5;
private System.Windows.Forms.MenuItem menuItem6;
private System.Windows.Forms.MenuItem menuItem7;
private System.Windows.Forms.MenuItem menuItem8;
private System.Windows.Forms.MenuItem menuItem9;
private System.Windows.Forms.MenuItem menuItem10;
private System.Windows.Forms.MenuItem menuItem11;
private System.Windows.Forms.MenuItem menuItem12;
private Sunisoft.IrisSkin.SkinEngine skinEngine1;
private System.ComponentModel.IContainer components;
private System.Windows.Forms.MenuItem menuItem13;
private System.Windows.Forms.MenuItem menuItem14;
private System.Windows.Forms.MenuItem menuItem15;
private System.Windows.Forms.MenuItem menuItem16;
private System.Windows.Forms.MenuItem menuItem17;
private System.Windows.Forms.MenuItem menuItem18;
private System.Windows.Forms.MenuItem menuItem19;
private System.Windows.Forms.MenuItem menuItem20;
private System.Windows.Forms.MenuItem menuItem21;
private System.Windows.Forms.MenuItem menuItem22;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.MenuItem menuItem23;
private System.Windows.Forms.MenuItem menuItem24;
private System.Windows.Forms.NotifyIcon notifyIcon1;
private System.Windows.Forms.ContextMenu contextMenu1;
private System.Windows.Forms.MenuItem menuItem25;
private System.Windows.Forms.MenuItem menuItem26;
private System.Windows.Forms.MenuItem menuItem27;
private System.Windows.Forms.MenuItem menuItem28;
private System.Windows.Forms.MenuItem menuItem29;
private System.Windows.Forms.MenuItem menuItem30;
private System.Windows.Forms.MenuItem menuItem31;
private System.Windows.Forms.MenuItem menuItem32;
private System.Windows.Forms.MenuItem menuItem33;
private System.Windows.Forms.MenuItem menuItem34;
private System.Windows.Forms.MenuItem menuItem35;
private System.Windows.Forms.MenuItem menuItem36;
private System.Windows.Forms.MenuItem menuItem37;
private System.Windows.Forms.MenuItem menuItem38;
private System.Windows.Forms.MenuItem menuItem39;
private System.Windows.Forms.MenuItem menuItem40;
private System.Windows.Forms.MenuItem menuItem41;
private AxWMPLib.AxWindowsMediaPlayer axWindowsMediaPlayer1;
private System.Windows.Forms.StatusBar statusBar1;
private System.Windows.Forms.MenuItem menuItem42;
private System.Windows.Forms.MenuItem menuItem43;
private System.Windows.Forms.MenuItem menuItem44;
private System.Windows.Forms.MenuItem menuItem45;
ArrayList a1=new ArrayList();
public frmMain()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
this.skinEngine1.SkinFile = "vista1_green.ssk";
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
ArrayList list=new ArrayList();
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(frmMain));
this.skinEngine1 = new Sunisoft.IrisSkin.SkinEngine(((System.ComponentModel.Component)(this)));
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
this.menuItem3 = new System.Windows.Forms.MenuItem();
this.menuItem10 = new System.Windows.Forms.MenuItem();
this.menuItem5 = new System.Windows.Forms.MenuItem();
this.menuItem7 = new System.Windows.Forms.MenuItem();
this.menuItem8 = new System.Windows.Forms.MenuItem();
this.menuItem6 = new System.Windows.Forms.MenuItem();
this.menuItem11 = new System.Windows.Forms.MenuItem();
this.menuItem12 = new System.Windows.Forms.MenuItem();
this.menuItem9 = new System.Windows.Forms.MenuItem();
this.menuItem14 = new System.Windows.Forms.MenuItem();
this.menuItem15 = new System.Windows.Forms.MenuItem();
this.menuItem17 = new System.Windows.Forms.MenuItem();
this.menuItem18 = new System.Windows.Forms.MenuItem();
this.menuItem19 = new System.Windows.Forms.MenuItem();
this.menuItem20 = new System.Windows.Forms.MenuItem();
this.menuItem21 = new System.Windows.Forms.MenuItem();
this.menuItem22 = new System.Windows.Forms.MenuItem();
this.menuItem23 = new System.Windows.Forms.MenuItem();
this.menuItem13 = new System.Windows.Forms.MenuItem();
this.menuItem16 = new System.Windows.Forms.MenuItem();
this.menuItem24 = new System.Windows.Forms.MenuItem();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
this.contextMenu1 = new System.Windows.Forms.ContextMenu();
this.menuItem34 = new System.Windows.Forms.MenuItem();
this.menuItem35 = new System.Windows.Forms.MenuItem();
this.menuItem36 = new System.Windows.Forms.MenuItem();
this.menuItem37 = new System.Windows.Forms.MenuItem();
this.menuItem38 = new System.Windows.Forms.MenuItem();
this.menuItem39 = new System.Windows.Forms.MenuItem();
this.menuItem40 = new System.Windows.Forms.MenuItem();
this.menuItem41 = new System.Windows.Forms.MenuItem();
this.menuItem33 = new System.Windows.Forms.MenuItem();
this.menuItem32 = new System.Windows.Forms.MenuItem();
this.menuItem31 = new System.Windows.Forms.MenuItem();
this.menuItem30 = new System.Windows.Forms.MenuItem();
this.menuItem29 = new System.Windows.Forms.MenuItem();
this.menuItem28 = new System.Windows.Forms.MenuItem();
this.menuItem27 = new System.Windows.Forms.MenuItem();
this.menuItem25 = new System.Windows.Forms.MenuItem();
this.menuItem26 = new System.Windows.Forms.MenuItem();
this.axWindowsMediaPlayer1 = new AxWMPLib.AxWindowsMediaPlayer();
this.statusBar1 = new System.Windows.Forms.StatusBar();
this.menuItem42 = new System.Windows.Forms.MenuItem();
this.menuItem43 = new System.Windows.Forms.MenuItem();
this.menuItem44 = new System.Windows.Forms.MenuItem();
this.menuItem45 = new System.Windows.Forms.MenuItem();
((System.ComponentModel.ISupportInitialize)(this.axWindowsMediaPlayer1)).BeginInit();
this.SuspendLayout();
//
// skinEngine1
//
this.skinEngine1.SerialNumber = "";
this.skinEngine1.SkinFile = null;
//
// mainMenu1
//
this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem1,
this.menuItem5,
this.menuItem6,
this.menuItem9,
this.menuItem13,
this.menuItem16,
this.menuItem24});
//
// menuItem1
//
this.menuItem1.Index = 0;
this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem2,
this.menuItem3,
this.menuItem10});
this.menuItem1.Text = "通讯录(&A)";
this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
//
// menuItem2
//
this.menuItem2.Index = 0;
this.menuItem2.Shortcut = System.Windows.Forms.Shortcut.F1;
this.menuItem2.Text = "新增通讯录";
this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
//
// menuItem3
//
this.menuItem3.Index = 1;
this.menuItem3.Shortcut = System.Windows.Forms.Shortcut.F2;
this.menuItem3.Text = "查看通讯录";
this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
//
// menuItem10
//
this.menuItem10.Index = 2;
this.menuItem10.Shortcut = System.Windows.Forms.Shortcut.F5;
this.menuItem10.Text = "退出";
this.menuItem10.Click += new System.EventHandler(this.menuItem10_Click);
//
// menuItem5
//
this.menuItem5.Index = 1;
this.menuItem5.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem7,
this.menuItem8});
this.menuItem5.Text = "收信箱(&R)";
//
// menuItem7
//
this.menuItem7.Index = 0;
this.menuItem7.Shortcut = System.Windows.Forms.Shortcut.ShiftF1;
this.menuItem7.Text = "已读短信";
this.menuItem7.Click += new System.EventHandler(this.menuItem7_Click);
//
// menuItem8
//
this.menuItem8.Index = 1;
this.menuItem8.Shortcut = System.Windows.Forms.Shortcut.ShiftF2;
this.menuItem8.Text = "未读短信";
this.menuItem8.Click += new System.EventHandler(this.menuItem8_Click);
//
// menuItem6
//
this.menuItem6.Index = 2;
this.menuItem6.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem11,
this.menuItem12});
this.menuItem6.Text = "发信箱(&S)";
//
// menuItem11
//
this.menuItem11.Index = 0;
this.menuItem11.Shortcut = System.Windows.Forms.Shortcut.F3;
this.menuItem11.Text = "发送新短信";
this.menuItem11.Click += new System.EventHandler(this.menuItem11_Click);
//
// menuItem12
//
this.menuItem12.Index = 1;
this.menuItem12.Shortcut = System.Windows.Forms.Shortcut.F4;
this.menuItem12.Text = "查看已发短信";
this.menuItem12.Click += new System.EventHandler(this.menuItem12_Click);
//
// menuItem9
//
this.menuItem9.Index = 3;
this.menuItem9.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem14,
this.menuItem15,
this.menuItem42});
this.menuItem9.Text = "用户管理(&M)";
this.menuItem9.Click += new System.EventHandler(this.menuItem9_Click);
//
// menuItem14
//
this.menuItem14.Index = 0;
this.menuItem14.Shortcut = System.Windows.Forms.Shortcut.F8;
this.menuItem14.Text = "切换用户";
this.menuItem14.Click += new System.EventHandler(this.menuItem14_Click);
//
// menuItem15
//
this.menuItem15.Index = 1;
this.menuItem15.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem17,
this.menuItem18,
this.menuItem19,
this.menuItem20,
this.menuItem21,
this.menuItem22,
this.menuItem23});
this.menuItem15.Text = "切换皮肤";
this.menuItem15.Click += new System.EventHandler(this.menuItem15_Click);
//
// menuItem17
//
this.menuItem17.Index = 0;
this.menuItem17.Text = "VISTA系列①";
this.menuItem17.Click += new System.EventHandler(this.menuItem17_Click);
//
// menuItem18
//
this.menuItem18.Index = 1;
this.menuItem18.Text = "VASTA系列②";
this.menuItem18.Click += new System.EventHandler(this.menuItem18_Click);
//
// menuItem19
//
this.menuItem19.Index = 2;
this.menuItem19.Text = "VASTA系列③";
this.menuItem19.Click += new System.EventHandler(this.menuItem19_Click);
//
// menuItem20
//
this.menuItem20.Index = 3;
this.menuItem20.Text = "沙漠";
this.menuItem20.Click += new System.EventHandler(this.menuItem20_Click);
//
// menuItem21
//
this.menuItem21.Index = 4;
this.menuItem21.Text = "蓝色海洋";
this.menuItem21.Click += new System.EventHandler(this.menuItem21_Click);
//
// menuItem22
//
this.menuItem22.Index = 5;
this.menuItem22.Text = "MSN";
this.menuItem22.Click += new System.EventHandler(this.menuItem22_Click);
//
// menuItem23
//
this.menuItem23.Index = 6;
this.menuItem23.Text = "还原皮肤";
this.menuItem23.Click += new System.EventHandler(this.menuItem23_Click);
//
// menuItem13
//
this.menuItem13.Index = 4;
this.menuItem13.Shortcut = System.Windows.Forms.Shortcut.F10;
this.menuItem13.Text = "帮助(&H)";
this.menuItem13.Click += new System.EventHandler(this.menuItem13_Click);
//
// menuItem16
//
this.menuItem16.Index = 5;
this.menuItem16.Shortcut = System.Windows.Forms.Shortcut.F5;
this.menuItem16.Text = "退出(&X)";
this.menuItem16.Click += new System.EventHandler(this.menuItem16_Click);
//
// menuItem24
//
this.menuItem24.Index = 6;
this.menuItem24.Text = "";
//
// timer1
//
this.timer1.Enabled = true;
this.timer1.Interval = 1000;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// notifyIcon1
//
this.notifyIcon1.ContextMenu = this.contextMenu1;
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
this.notifyIcon1.Text = "notifyIcon1";
this.notifyIcon1.Visible = true;
this.notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
//
// contextMenu1
//
this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem34,
this.menuItem33,
this.menuItem32,
this.menuItem31,
this.menuItem30,
this.menuItem29,
this.menuItem28,
this.menuItem27,
this.menuItem25,
this.menuItem26});
//
// menuItem34
//
this.menuItem34.Index = 0;
this.menuItem34.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem35,
this.menuItem36,
this.menuItem37,
this.menuItem38,
this.menuItem39,
this.menuItem40,
this.menuItem41});
this.menuItem34.Text = "切换皮肤";
//
// menuItem35
//
this.menuItem35.Index = 0;
this.menuItem35.Shortcut = System.Windows.Forms.Shortcut.Alt1;
this.menuItem35.Text = "VASTA系列一";
this.menuItem35.Click += new System.EventHandler(this.menuItem35_Click);
//
// menuItem36
//
this.menuItem36.Index = 1;
this.menuItem36.Shortcut = System.Windows.Forms.Shortcut.Alt2;
this.menuItem36.Text = "VASTA系列二";
this.menuItem36.Click += new System.EventHandler(this.menuItem36_Click);
//
// menuItem37
//
this.menuItem37.Index = 2;
this.menuItem37.Shortcut = System.Windows.Forms.Shortcut.Alt3;
this.menuItem37.Text = "VAsta系列三";
this.menuItem37.Click += new System.EventHandler(this.menuItem37_Click);
//
// menuItem38
//
this.menuItem38.Index = 3;
this.menuItem38.Shortcut = System.Windows.Forms.Shortcut.Alt4;
this.menuItem38.Text = "蓝色海洋";
this.menuItem38.Click += new System.EventHandler(this.menuItem38_Click);
//
// menuItem39
//
this.menuItem39.Index = 4;
this.menuItem39.Shortcut = System.Windows.Forms.Shortcut.Alt5;
this.menuItem39.Text = "沙漠";
this.menuItem39.Click += new System.EventHandler(this.menuItem39_Click);
//
// menuItem40
//
this.menuItem40.Index = 5;
this.menuItem40.Shortcut = System.Windows.Forms.Shortcut.Alt6;
this.menuItem40.Text = "MSN";
this.menuItem40.Click += new System.EventHandler(this.menuItem40_Click);
//
// menuItem41
//
this.menuItem41.Index = 6;
this.menuItem41.Shortcut = System.Windows.Forms.Shortcut.Alt7;
this.menuItem41.Text = "还原皮肤";
this.menuItem41.Click += new System.EventHandler(this.menuItem41_Click);
//
// menuItem33
//
this.menuItem33.Index = 1;
this.menuItem33.Shortcut = System.Windows.Forms.Shortcut.F10;
this.menuItem33.Text = "帮助(&H)";
this.menuItem33.Click += new System.EventHandler(this.menuItem33_Click);
//
// menuItem32
//
this.menuItem32.Index = 2;
this.menuItem32.Shortcut = System.Windows.Forms.Shortcut.ShiftF1;
this.menuItem32.Text = "已读短信";
this.menuItem32.Click += new System.EventHandler(this.menuItem32_Click);
//
// menuItem31
//
this.menuItem31.Index = 3;
this.menuItem31.Shortcut = System.Windows.Forms.Shortcut.ShiftF2;
this.menuItem31.Text = "未读短信";
this.menuItem31.Click += new System.EventHandler(this.menuItem31_Click);
//
// menuItem30
//
this.menuItem30.Index = 4;
this.menuItem30.Shortcut = System.Windows.Forms.Shortcut.F4;
this.menuItem30.Text = "查看已发短信";
this.menuItem30.Click += new System.EventHandler(this.menuItem30_Click);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -