www.pudn.com > sanpack_rsa_vs2003sln_src.rar > about.cs


using System; 
using System.Drawing; 
using System.Collections; 
using System.ComponentModel; 
using System.Windows.Forms; 
using sanpack_rsa_csclass; 
 
namespace sanpack_rsa_dotnet11 
{ 
	///  
	/// about 的摘要说明。 
	///  
	public class about : System.Windows.Forms.Form 
	{ 
		private System.Windows.Forms.Label label1; 
		private RSAform f; 
		private System.Windows.Forms.Label label2; 
		private System.Windows.Forms.PictureBox pictureBox1; 
		///  
		/// 必需的设计器变量。 
		///  
		private System.ComponentModel.Container components = null; 
 
		public about(RSAform af) 
		{ 
			// 
			// Windows 窗体设计器支持所必需的 
			// 
			InitializeComponent(); 
			f=af; 
			// 
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码 
			// 
		} 
 
		///  
		/// 清理所有正在使用的资源。 
		///  
		protected override void Dispose( bool disposing ) 
		{ 
			if( disposing ) 
			{ 
				if(components != null) 
				{ 
					components.Dispose(); 
				} 
			} 
			base.Dispose( disposing ); 
		} 
 
		#region Windows 窗体设计器生成的代码 
		///  
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改 
		/// 此方法的内容。 
		///  
		private void InitializeComponent() 
		{ 
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(about)); 
			this.label1 = new System.Windows.Forms.Label(); 
			this.label2 = new System.Windows.Forms.Label(); 
			this.pictureBox1 = new System.Windows.Forms.PictureBox(); 
			this.SuspendLayout(); 
			//  
			// label1 
			//  
			this.label1.BackColor = System.Drawing.Color.Transparent; 
			this.label1.ForeColor = System.Drawing.SystemColors.ControlText; 
			this.label1.Location = new System.Drawing.Point(8, 80); 
			this.label1.Name = "label1"; 
			this.label1.Size = new System.Drawing.Size(104, 24); 
			this.label1.TabIndex = 0; 
			this.label1.Click += new System.EventHandler(this.label1_Click); 
			//  
			// label2 
			//  
			this.label2.BackColor = System.Drawing.Color.Transparent; 
			this.label2.ForeColor = System.Drawing.SystemColors.ControlText; 
			this.label2.Location = new System.Drawing.Point(0, 56); 
			this.label2.Name = "label2"; 
			this.label2.Size = new System.Drawing.Size(120, 23); 
			this.label2.TabIndex = 1; 
			this.label2.Text = "http://www.3mn.net"; 
			this.label2.Click += new System.EventHandler(this.label2_Click); 
			//  
			// pictureBox1 
			//  
			this.pictureBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.BackgroundImage"))); 
			this.pictureBox1.Location = new System.Drawing.Point(40, 16); 
			this.pictureBox1.Name = "pictureBox1"; 
			this.pictureBox1.Size = new System.Drawing.Size(32, 32); 
			this.pictureBox1.TabIndex = 2; 
			this.pictureBox1.TabStop = false; 
			this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click); 
			//  
			// about 
			//  
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); 
			this.BackColor = System.Drawing.SystemColors.ActiveBorder; 
			this.ClientSize = new System.Drawing.Size(114, 95); 
			this.Controls.Add(this.pictureBox1); 
			this.Controls.Add(this.label1); 
			this.Controls.Add(this.label2); 
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 
			this.MaximizeBox = false; 
			this.MinimizeBox = false; 
			this.Name = "about"; 
			this.ShowInTaskbar = false; 
			this.Text = "关于sanPack"; 
			this.Click += new System.EventHandler(this.about_Click); 
			this.Load += new System.EventHandler(this.about_Load); 
			this.ResumeLayout(false); 
 
		} 
		#endregion 
 
		private void about_Load(object sender, System.EventArgs e) 
		{ 
			label1.Text=Sanpack_rsa.get_Version(); 
			this.SetDesktopLocation(Screen.PrimaryScreen.WorkingArea.Width/2-this.Size.Width/2, 
				Screen.PrimaryScreen.WorkingArea.Height/2-this.Size.Height/2); 
			 
		} 
		private void about_Click(object sender, System.EventArgs e) 
		{ 
			this.Close(); 
			this.Dispose();			 
		} 
		private void label2_Click(object sender, System.EventArgs e) 
		{ 
			this.Close(); 
			this.Dispose(); 
		} 
 
		private void pictureBox1_Click(object sender, System.EventArgs e) 
		{ 
			this.Close(); 
			this.Dispose(); 
 
		} 
 
		private void label1_Click(object sender, System.EventArgs e) 
		{ 
			this.Close(); 
			this.Dispose(); 
		} 
	} 
}