⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 weiduduanxin.cs

📁 功能比较强大的短信收发系统功能比较强大。
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.IO;

namespace ShInfo
{
	/// <summary>
	/// weiduduanxin 的摘要说明。
	/// </summary>
	public class weiduduanxin : System.Windows.Forms.Form
	{
		private System.Windows.Forms.ListBox listBox1;
		private System.Windows.Forms.Button btnclose2;
		private Sunisoft.IrisSkin.SkinEngine skinEngine1;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;
		public weiduduanxin()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();
			this.skinEngine1.SkinFile = "DiamondBlue.ssk";
			//
			// 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(weiduduanxin));
			this.skinEngine1 = new Sunisoft.IrisSkin.SkinEngine(((System.ComponentModel.Component)(this)));
			this.listBox1 = new System.Windows.Forms.ListBox();
			this.btnclose2 = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// skinEngine1
			// 
			this.skinEngine1.SerialNumber = "";
			this.skinEngine1.SkinFile = null;
			// 
			// listBox1
			// 
			this.listBox1.Font = new System.Drawing.Font("华文楷体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.listBox1.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
			this.listBox1.ItemHeight = 18;
			this.listBox1.Location = new System.Drawing.Point(0, 0);
			this.listBox1.Name = "listBox1";
			this.listBox1.Size = new System.Drawing.Size(480, 238);
			this.listBox1.TabIndex = 0;
			// 
			// btnclose2
			// 
			this.btnclose2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.btnclose2.Location = new System.Drawing.Point(352, 264);
			this.btnclose2.Name = "btnclose2";
			this.btnclose2.TabIndex = 3;
			this.btnclose2.Text = "关闭(&E)";
			this.btnclose2.Click += new System.EventHandler(this.btnclose2_Click);
			// 
			// weiduduanxin
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(472, 301);
			this.Controls.Add(this.btnclose2);
			this.Controls.Add(this.listBox1);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.Name = "weiduduanxin";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "未读短信";
			this.Load += new System.EventHandler(this.weiduduanxin_Load);
			this.ResumeLayout(false);

		}
		#endregion

		private void btnclose2_Click(object sender, System.EventArgs e)
		{
			ArrayList a1=new ArrayList();
			a1.Remove(this.listBox1.SelectedItems);
			File.Delete("未读信息.txt");
			this.listBox1.Items.Remove(this.listBox1.Text);
			ShortMessage sm=new ShortMessage();
			sm.Datetime=Convert.ToString(DateTime.Now);
			sm.Fnum=frmLogin.use.Unum;
			sm.Jnum=Xinduanxin.SM.Jnum;
			sm.Minfo=Xinduanxin.SM.Minfo;
			Recvivemessagebox rb=new Recvivemessagebox();
			rb.Ysendinfo(sm);
			this.Close();
		}

		private void weiduduanxin_Load(object sender, System.EventArgs e)
		{
			ArrayList al=new ArrayList();
			Recvivemessagebox w=new Recvivemessagebox();
			al=w.Wreadinfo();
			for(int i=0;i<al.Count;i++)
			{
				this.listBox1.Items.Add(al[i]);
			}
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -