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

📄 config_key.cs

📁 软件工程的课程作业
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace PSMS
{
	/// <summary>
	/// config_key 的摘要说明。
	/// </summary>
	public class config_key : System.Windows.Forms.Form
	{
		public System.Windows.Forms.Label config;
		public System.Windows.Forms.TextBox configbox;
		public System.Windows.Forms.Button sure;
		public System.Windows.Forms.Button cancel;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public config_key()
		{
			//
			// 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(config_key));
			this.config = new System.Windows.Forms.Label();
			this.configbox = new System.Windows.Forms.TextBox();
			this.sure = new System.Windows.Forms.Button();
			this.cancel = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// config
			// 
			this.config.Location = new System.Drawing.Point(24, 16);
			this.config.Name = "config";
			this.config.Size = new System.Drawing.Size(72, 16);
			this.config.TabIndex = 0;
			this.config.Text = "确认密码:";
			// 
			// configbox
			// 
			this.configbox.Location = new System.Drawing.Point(96, 16);
			this.configbox.MaxLength = 20;
			this.configbox.Name = "configbox";
			this.configbox.PasswordChar = '*';
			this.configbox.Size = new System.Drawing.Size(128, 21);
			this.configbox.TabIndex = 1;
			this.configbox.Text = "";
			// 
			// sure
			// 
			this.sure.Location = new System.Drawing.Point(40, 56);
			this.sure.Name = "sure";
			this.sure.Size = new System.Drawing.Size(64, 24);
			this.sure.TabIndex = 2;
			this.sure.Text = "确定";
			this.sure.Click += new System.EventHandler(this.sure_Click);
			// 
			// cancel
			// 
			this.cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.cancel.Location = new System.Drawing.Point(144, 56);
			this.cancel.Name = "cancel";
			this.cancel.Size = new System.Drawing.Size(64, 24);
			this.cancel.TabIndex = 3;
			this.cancel.Text = "取消";
			// 
			// config_key
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.Color.AliceBlue;
			this.CancelButton = this.cancel;
			this.ClientSize = new System.Drawing.Size(256, 94);
			this.ControlBox = false;
			this.Controls.Add(this.cancel);
			this.Controls.Add(this.sure);
			this.Controls.Add(this.configbox);
			this.Controls.Add(this.config);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.MaximumSize = new System.Drawing.Size(264, 128);
			this.MinimumSize = new System.Drawing.Size(264, 128);
			this.Name = "config_key";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "密码确认";
			this.ResumeLayout(false);

		}
		#endregion

		private void sure_Click(object sender, System.EventArgs e)
		{
			sure.BackColor = Color.GreenYellow;
			Close();
		}
	}
}

⌨️ 快捷键说明

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