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

📄 副本 kttablename.cs

📁 《数据库原理及应用》-刘玉宝主编-源代码
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace KTMIS
{
	/// <summary>
	/// KTTableName 的摘要说明。
	/// </summary>
	public class KTTableName : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label KTTblNameLbl;
		private System.Windows.Forms.TextBox KTNameTxt;
		private System.Windows.Forms.Button comfirmBtn;
		private System.Windows.Forms.Button cancelBtn;

		private string KTTblName = null;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public KTTableName()
		{
			//
			// 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()
		{
			this.KTTblNameLbl = new System.Windows.Forms.Label();
			this.KTNameTxt = new System.Windows.Forms.TextBox();
			this.comfirmBtn = new System.Windows.Forms.Button();
			this.cancelBtn = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// KTTblNameLbl
			// 
			this.KTTblNameLbl.Location = new System.Drawing.Point(8, 48);
			this.KTTblNameLbl.Name = "KTTblNameLbl";
			this.KTTblNameLbl.Size = new System.Drawing.Size(304, 24);
			this.KTTblNameLbl.TabIndex = 0;
			this.KTTblNameLbl.Text = "请输入所要添加的课题表名称:";
			// 
			// KTNameTxt
			// 
			this.KTNameTxt.Location = new System.Drawing.Point(320, 48);
			this.KTNameTxt.Name = "KTNameTxt";
			this.KTNameTxt.Size = new System.Drawing.Size(336, 30);
			this.KTNameTxt.TabIndex = 1;
			this.KTNameTxt.Text = "2005年教学研究课题一览表";
			// 
			// comfirmBtn
			// 
			this.comfirmBtn.Location = new System.Drawing.Point(168, 120);
			this.comfirmBtn.Name = "comfirmBtn";
			this.comfirmBtn.Size = new System.Drawing.Size(112, 40);
			this.comfirmBtn.TabIndex = 2;
			this.comfirmBtn.Text = "确定";
			this.comfirmBtn.Click += new System.EventHandler(this.comfirmBtn_Click);
			// 
			// cancelBtn
			// 
			this.cancelBtn.Location = new System.Drawing.Point(384, 120);
			this.cancelBtn.Name = "cancelBtn";
			this.cancelBtn.Size = new System.Drawing.Size(112, 40);
			this.cancelBtn.TabIndex = 3;
			this.cancelBtn.Text = "返回";
			this.cancelBtn.Click += new System.EventHandler(this.cancelBtn_Click);
			// 
			// KTTableName
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(11, 23);
			this.ClientSize = new System.Drawing.Size(672, 198);
			this.Controls.Add(this.cancelBtn);
			this.Controls.Add(this.comfirmBtn);
			this.Controls.Add(this.KTNameTxt);
			this.Controls.Add(this.KTTblNameLbl);
			this.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.Name = "KTTableName";
			this.Text = "添加课题表名称";
			this.ResumeLayout(false);

		}
		#endregion

		private void comfirmBtn_Click(object sender, System.EventArgs e)
		{
			KTTblName = KTNameTxt.Text.Trim();
			this.Close();
		}

		public string GetKTTblName()
		{
			return KTTblName;
		}

		private void cancelBtn_Click(object sender, System.EventArgs e)
		{
			//KTTblName = "";
			this.Close();
		}
	}
}

⌨️ 快捷键说明

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