using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace JXC_MIS.UserTier.CommonForm
{
		/// <summary>
		/// frmAbout 的摘要说明。
		/// </summary>
		internal class frmAbout : System.Windows.Forms.Form
		{
			private System.Windows.Forms.Label lblSplit;
			private System.Windows.Forms.PictureBox pictureBox1;
			private System.Windows.Forms.Label lblVer;
			private System.Windows.Forms.Label lblDescript;
			private System.Windows.Forms.Label lblProduct;
			private System.Windows.Forms.Button btnOK;
			private System.Windows.Forms.Label lblWarning;
			private System.Windows.Forms.Label label1;
			private System.Windows.Forms.Label lblUser;
		
			//关于窗口
			//窗口标题
			private string m_WinCaption= "关于WebMIS.Net快速开发平台...";
			//应用程序产品及版权
			private string m_product= "产品：\nWebMIS.NET快速开发平台（C/S架构）";
			//版本
			private string m_version="版本：\nV2.5源码版";
			//产品描述
			private string m_descript= "描述：\n不写一行程序，配置MIS、ERP，将主要精力放在业务上，解放代码生产力！";
			//警告m
			private string m_warning= "警告：本计算机程序受著作权法和国际公约的保护，除非是免费版，未经授权擅自复制或传播本程序的部分或全部，" +
				"可能受到严厉的民事及刑事制裁。";
			//授权用户 
			private string m_user="授权用户";
			private System.Windows.Forms.Label lblDeclare;
			private System.Windows.Forms.LinkLabel lkAuthorSite;
			private System.Windows.Forms.LinkLabel lkAuthors;
			private System.Windows.Forms.LinkLabel lkBlog;
			private System.Windows.Forms.Label label3;	
			/// <summary>
			/// 应用程序标题
			/// </summary>
			public string WinCaption
			{
				set
				{
					m_WinCaption = value;
				}
			}

			/// <summary>
			/// 产品
			/// </summary>
			public string Product
			{
				set
				{
					m_product = value;
				}
			}

			/// <summary>
			/// 版本
			/// </summary>
			public string Version
			{
				set
				{
					m_version = value;
				}
			}


			/// <summary>
			/// 描述
			/// </summary>
			public string Descript
			{
				set
				{
					m_descript = value;
				}
			}
	
			/// <summary>
			/// 警告
			/// </summary>
			public string Warning
			{
				set
				{
					m_warning = value;
				}
			}

			/// <summary>
			/// 授权用户
			/// </summary>
			public string User
			{
				set
				{
					m_user = value;
				}
			}
			/// <summary>
			/// 必需的设计器变量。
			/// </summary>
			private System.ComponentModel.Container components = null;

			public frmAbout()
			{
				//
				// Windows 窗体设计器支持所必需的
				//
				InitializeComponent();

				//
				// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
				//
			}
		
			/// <summary>
			/// 清理所有正在使用的资源。
			/// </summary>
			protected override void Dispose( bool disposing )
			{
				if( disposing )
				{
					if(components != null)
					{
						components.Dispose();
					}
				}
				base.Dispose( disposing );
			}

			#region Windows Form Designer generated code
			/// <summary>
			/// 设计器支持所需的方法 - 不要使用代码编辑器修改
			/// 此方法的内容。
			/// </summary>
			private void InitializeComponent()
			{
				System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmAbout));
				this.lblSplit = new System.Windows.Forms.Label();
				this.pictureBox1 = new System.Windows.Forms.PictureBox();
				this.lblProduct = new System.Windows.Forms.Label();
				this.lblVer = new System.Windows.Forms.Label();
				this.lblDescript = new System.Windows.Forms.Label();
				this.btnOK = new System.Windows.Forms.Button();
				this.lblWarning = new System.Windows.Forms.Label();
				this.label1 = new System.Windows.Forms.Label();
				this.lblUser = new System.Windows.Forms.Label();
				this.lblDeclare = new System.Windows.Forms.Label();
				this.lkAuthorSite = new System.Windows.Forms.LinkLabel();
				this.lkAuthors = new System.Windows.Forms.LinkLabel();
				this.lkBlog = new System.Windows.Forms.LinkLabel();
				this.label3 = new System.Windows.Forms.Label();
				this.SuspendLayout();
				// 
				// lblSplit
				// 
				this.lblSplit.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
				this.lblSplit.ForeColor = System.Drawing.SystemColors.ControlLightLight;
				this.lblSplit.Location = new System.Drawing.Point(6, 250);
				this.lblSplit.Name = "lblSplit";
				this.lblSplit.Size = new System.Drawing.Size(436, 3);
				this.lblSplit.TabIndex = 0;
				this.lblSplit.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
				// 
				// pictureBox1
				// 
				this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
				this.pictureBox1.Location = new System.Drawing.Point(4, 24);
				this.pictureBox1.Name = "pictureBox1";
				this.pictureBox1.Size = new System.Drawing.Size(104, 119);
				this.pictureBox1.TabIndex = 2;
				this.pictureBox1.TabStop = false;
				// 
				// lblProduct
				// 
				this.lblProduct.Location = new System.Drawing.Point(110, 9);
				this.lblProduct.Name = "lblProduct";
				this.lblProduct.Size = new System.Drawing.Size(332, 41);
				this.lblProduct.TabIndex = 3;
				this.lblProduct.Text = "应用程序：WebMIS.NET快速开发平台（C/S架构）";
				// 
				// lblVer
				// 
				this.lblVer.Location = new System.Drawing.Point(110, 55);
				this.lblVer.Name = "lblVer";
				this.lblVer.Size = new System.Drawing.Size(332, 41);
				this.lblVer.TabIndex = 4;
				this.lblVer.Text = "版本：V2.5源码版";
				// 
				// lblDescript
				// 
				this.lblDescript.BackColor = System.Drawing.SystemColors.Control;
				this.lblDescript.Location = new System.Drawing.Point(110, 101);
				this.lblDescript.Name = "lblDescript";
				this.lblDescript.Size = new System.Drawing.Size(332, 103);
				this.lblDescript.TabIndex = 5;
				this.lblDescript.Text = "描述：不写一行程序，配置MIS、ERP，将主要精力放在业务上，解放代码生产力！";
				// 
				// btnOK
				// 
				this.btnOK.Location = new System.Drawing.Point(360, 222);
				this.btnOK.Name = "btnOK";
				this.btnOK.Size = new System.Drawing.Size(80, 25);
				this.btnOK.TabIndex = 0;
				this.btnOK.Text = "确定";
				this.btnOK.Click += new System.EventHandler(this.cmdOK_Click);
				// 
				// lblWarning
				// 
				this.lblWarning.Location = new System.Drawing.Point(9, 262);
				this.lblWarning.Name = "lblWarning";
				this.lblWarning.Size = new System.Drawing.Size(433, 46);
				this.lblWarning.TabIndex = 6;
				this.lblWarning.Text = "警告信息：本计算机程序受著作权法和国际公约的保护，除非是免费版，未经授权擅自复制或传播本程序的部分或全部，可能受到严厉的民事及刑事制裁。";
				// 
				// label1
				// 
				this.label1.Location = new System.Drawing.Point(9, 160);
				this.label1.Name = "label1";
				this.label1.Size = new System.Drawing.Size(117, 16);
				this.label1.TabIndex = 7;
				this.label1.Text = "本产品使用权属于：";
				// 
				// lblUser
				// 
				this.lblUser.AutoSize = true;
				this.lblUser.Location = new System.Drawing.Point(130, 160);
				this.lblUser.Name = "lblUser";
				this.lblUser.Size = new System.Drawing.Size(116, 17);
				this.lblUser.TabIndex = 8;
				this.lblUser.Text = "极权后，你随便用吧";
				// 
				// lblDeclare
				// 
				this.lblDeclare.BackColor = System.Drawing.Color.Orange;
				this.lblDeclare.Font = new System.Drawing.Font("隶书", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
				this.lblDeclare.ForeColor = System.Drawing.Color.Red;
				this.lblDeclare.Location = new System.Drawing.Point(8, 310);
				this.lblDeclare.Name = "lblDeclare";
				this.lblDeclare.Size = new System.Drawing.Size(438, 50);
				this.lblDeclare.TabIndex = 75;
				this.lblDeclare.Text = "未经作者授权，任何单位和个人不得修改本系统代码、不得修改作者信息和申明信息，无论是运行时还是设计时。特别申明：部分源码来源于网上，版权为原作者所有。";
				// 
				// lkAuthorSite
				// 
				this.lkAuthorSite.Font = new System.Drawing.Font("宋体", 10F);
				this.lkAuthorSite.Location = new System.Drawing.Point(10, 180);
				this.lkAuthorSite.Name = "lkAuthorSite";
				this.lkAuthorSite.Size = new System.Drawing.Size(378, 18);
				this.lkAuthorSite.TabIndex = 76;
				this.lkAuthorSite.TabStop = true;
				this.lkAuthorSite.Text = "最新下载：www.webmis.net.cn / www.webmis.com.cn";
				this.lkAuthorSite.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkAuthorSite_LinkClicked);
				// 
				// lkAuthors
				// 
				this.lkAuthors.Font = new System.Drawing.Font("宋体", 10F);
				this.lkAuthors.LinkColor = System.Drawing.Color.Blue;
				this.lkAuthors.Location = new System.Drawing.Point(10, 202);
				this.lkAuthors.Name = "lkAuthors";
				this.lkAuthors.Size = new System.Drawing.Size(378, 18);
				this.lkAuthors.TabIndex = 77;
				this.lkAuthors.TabStop = true;
				this.lkAuthors.Text = "联系作者：goldmountain@163.com、flygoldfish@163.com";
				this.lkAuthors.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkAuthors_LinkClicked);
				// 
				// lkBlog
				// 
				this.lkBlog.Font = new System.Drawing.Font("宋体", 9F);
				this.lkBlog.Location = new System.Drawing.Point(80, 222);
				this.lkBlog.Name = "lkBlog";
				this.lkBlog.Size = new System.Drawing.Size(204, 18);
				this.lkBlog.TabIndex = 78;
				this.lkBlog.TabStop = true;
				this.lkBlog.Text = "http://blog.csdn.net/flygoldfish";
				this.lkBlog.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkBlog_LinkClicked);
				// 
				// label3
				// 
				this.label3.Dock = System.Windows.Forms.DockStyle.Bottom;
				this.label3.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
				this.label3.ForeColor = System.Drawing.Color.Red;
				this.label3.Location = new System.Drawing.Point(0, 361);
				this.label3.Name = "label3";
				this.label3.Size = new System.Drawing.Size(446, 24);
				this.label3.TabIndex = 79;
				this.label3.Text = "版权所有:长江支流、流金岁月(出售新版权100万、电子行业MIS13万)";
				this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
				// 
				// frmAbout
				// 
				this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
				this.ClientSize = new System.Drawing.Size(446, 385);
				this.Controls.Add(this.label3);
				this.Controls.Add(this.lkBlog);
				this.Controls.Add(this.lkAuthors);
				this.Controls.Add(this.lkAuthorSite);
				this.Controls.Add(this.lblDeclare);
				this.Controls.Add(this.lblUser);
				this.Controls.Add(this.label1);
				this.Controls.Add(this.lblWarning);
				this.Controls.Add(this.btnOK);
				this.Controls.Add(this.lblDescript);
				this.Controls.Add(this.lblVer);
				this.Controls.Add(this.lblProduct);
				this.Controls.Add(this.pictureBox1);
				this.Controls.Add(this.lblSplit);
				this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
				this.MaximizeBox = false;
				this.MinimizeBox = false;
				this.Name = "frmAbout";
				this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
				this.Text = "关于WebMIS.Net快速开发平台...";
				this.Load += new System.EventHandler(this.frmAbout_Load);
				this.ResumeLayout(false);

			}
			#endregion


			/// <summary>
			/// 关于窗口的一些基本信息
			/// </summary>
			/// <param name="text">标题</param>
			/// <param name="product">产品</param>
			/// <param name="version">版本</param>
			/// <param name="descript">描述</param>
			/// <param name="warning">警告</param>
			/// <param name="user">授权用户</param>
			public void InitData()
			{
				this.Text = m_WinCaption;
				this.lblProduct.Text = m_product ;
				this.lblVer.Text = m_version ;
				this.lblDescript.Text = m_descript ;
				this.lblWarning.Text = m_warning ;
				this.lblUser.Text = m_user ;
				this.Refresh();
			}

			private void cmdOK_Click(object sender, System.EventArgs e)
			{
				this.Close();
			}

			private void frmAbout_Load(object sender, System.EventArgs e)
			{
				InitData();
			}

			//最新更新，作者更多实用免费源码...
			private void lkAuthorSite_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
			{
				System.Diagnostics.Process.Start("IEXPLORE.EXE","www.webmis.com.cn");
				System.Diagnostics.Process.Start("IEXPLORE.EXE","www.webmis.net.cn");			
			}

			//诚征赞助、冠名、广告...
			private void lkAuthors_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
			{
				System.Diagnostics.Process.Start("mailto:goldmountain@163.com,flygoldfish@163.com?subject=《WebMIS.NET快速开发平台》注册&copyas=goldmountain@163.com&body=长流支流、流金岁月 你们好！　　...");
			}

			//热点Blog
			private void lkBlog_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
			{
				System.Diagnostics.Process.Start("IEXPLORE.EXE","http://blog.csdn.net/flygoldfish");
			}
	
		}
	}
