copyrightframe.cs

来自「独立完成考勤管理软件加打卡系统(C#) 是打卡加管理系统软件 」· CS 代码 · 共 125 行

CS
125
字号
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace WindowsApplication
{
	/// <summary>
	/// copyrightFrame 的摘要说明。
	/// </summary>
	public class copyrightFrame : System.Windows.Forms.Form
	{
		protected System.Windows.Forms.Label AboutLabel;
		private System.Windows.Forms.LinkLabel CopyrightLabel;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

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

			//
			// 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(copyrightFrame));
			this.AboutLabel = new System.Windows.Forms.Label();
			this.CopyrightLabel = new System.Windows.Forms.LinkLabel();
			this.SuspendLayout();
			// 
			// AboutLabel
			// 
			this.AboutLabel.BackColor = System.Drawing.Color.Navy;
			this.AboutLabel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.AboutLabel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.AboutLabel.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.AboutLabel.ForeColor = System.Drawing.SystemColors.ControlLightLight;
			this.AboutLabel.Location = new System.Drawing.Point(0, 0);
			this.AboutLabel.Name = "AboutLabel";
			this.AboutLabel.Size = new System.Drawing.Size(304, 32);
			this.AboutLabel.TabIndex = 0;
			this.AboutLabel.Text = "版权";
			this.AboutLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// CopyrightLabel
			// 
			this.CopyrightLabel.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.CopyrightLabel.Location = new System.Drawing.Point(80, 56);
			this.CopyrightLabel.Name = "CopyrightLabel";
			this.CopyrightLabel.Size = new System.Drawing.Size(128, 23);
			this.CopyrightLabel.TabIndex = 1;
			this.CopyrightLabel.TabStop = true;
			this.CopyrightLabel.Text = "Http://www.126.com";
			this.CopyrightLabel.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
			this.CopyrightLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.CopyrightLabel_LinkClicked);
			// 
			// copyrightFrame
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.SystemColors.Info;
			this.ClientSize = new System.Drawing.Size(296, 111);
			this.Controls.Add(this.CopyrightLabel);
			this.Controls.Add(this.AboutLabel);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "copyrightFrame";
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "copyrightFrame";
			this.Load += new System.EventHandler(this.copyrightFrame_Load);
			this.ResumeLayout(false);

		}
		#endregion

		private void copyrightFrame_Load(object sender, System.EventArgs e)
		{
		
		}

		private void CopyrightLabel_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
		{
			try
			{
				System.Diagnostics.Process.Start("Http://www.126.com");
			}
			catch(Exception exel)
			{
				MessageBox.Show(this,exel.ToString(),"提示信息",MessageBoxButtons.OK,MessageBoxIcon.Information);
			}
		}
	}
}

⌨️ 快捷键说明

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