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

📄 remind_linkman.cs

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

namespace PSMS
{
	/// <summary>
	/// Summary description for remind_linkman.
	/// </summary>
	public class remind_linkman : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		public System.Windows.Forms.TextBox PreRemind;
		private System.Windows.Forms.Button cancel;
		private System.Windows.Forms.Label label2;
		public System.Windows.Forms.TextBox LinkmanID;
		public System.Windows.Forms.Button rlsubmit;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public remind_linkman()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(remind_linkman));
			this.cancel = new System.Windows.Forms.Button();
			this.PreRemind = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.LinkmanID = new System.Windows.Forms.TextBox();
			this.rlsubmit = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// cancel
			// 
			this.cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.cancel.Location = new System.Drawing.Point(136, 96);
			this.cancel.Name = "cancel";
			this.cancel.Size = new System.Drawing.Size(64, 23);
			this.cancel.TabIndex = 1;
			this.cancel.Text = "取消";
			// 
			// PreRemind
			// 
			this.PreRemind.Location = new System.Drawing.Point(136, 56);
			this.PreRemind.Name = "PreRemind";
			this.PreRemind.Size = new System.Drawing.Size(64, 21);
			this.PreRemind.TabIndex = 2;
			this.PreRemind.Text = "";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(16, 56);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(120, 23);
			this.label1.TabIndex = 3;
			this.label1.Text = "生日预先提醒天数:";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(64, 16);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(72, 23);
			this.label2.TabIndex = 4;
			this.label2.Text = "联系人ID:";
			// 
			// LinkmanID
			// 
			this.LinkmanID.Location = new System.Drawing.Point(136, 16);
			this.LinkmanID.Name = "LinkmanID";
			this.LinkmanID.Size = new System.Drawing.Size(64, 21);
			this.LinkmanID.TabIndex = 5;
			this.LinkmanID.Text = "";
			// 
			// rlsubmit
			// 
			this.rlsubmit.Location = new System.Drawing.Point(32, 96);
			this.rlsubmit.Name = "rlsubmit";
			this.rlsubmit.Size = new System.Drawing.Size(64, 24);
			this.rlsubmit.TabIndex = 6;
			this.rlsubmit.Text = "确定";
			this.rlsubmit.Click += new System.EventHandler(this.rlsubmit_Click);
			// 
			// remind_linkman
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.Color.AliceBlue;
			this.CancelButton = this.cancel;
			this.ClientSize = new System.Drawing.Size(224, 126);
			this.Controls.Add(this.rlsubmit);
			this.Controls.Add(this.LinkmanID);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.PreRemind);
			this.Controls.Add(this.cancel);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.MaximumSize = new System.Drawing.Size(232, 160);
			this.MinimumSize = new System.Drawing.Size(232, 160);
			this.Name = "remind_linkman";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "remind_linkman";
			this.ResumeLayout(false);

		}
		#endregion


		private void rlsubmit_Click(object sender, System.EventArgs e)
		{
			
			if(PreRemind.Text == "")
				MessageBox.Show("Please Input PreRemind!");
			else 
			{
				rlsubmit.BackColor = Color.GreenYellow;
				Close();
			}
		}
	}
}

⌨️ 快捷键说明

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