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

📄 remind_project.cs

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

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

		public remind_project()
		{
			//
			// 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_project));
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.ProjectID = new System.Windows.Forms.TextBox();
			this.LinkmanID = new System.Windows.Forms.TextBox();
			this.PreRemindPro = new System.Windows.Forms.TextBox();
			this.submit = new System.Windows.Forms.Button();
			this.cancel = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(88, 16);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(56, 23);
			this.label1.TabIndex = 0;
			this.label1.Text = "项目ID:";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(80, 56);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(72, 23);
			this.label2.TabIndex = 1;
			this.label2.Text = "联系人ID:";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(32, 96);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(120, 23);
			this.label3.TabIndex = 2;
			this.label3.Text = "项目预先提醒天数:";
			// 
			// ProjectID
			// 
			this.ProjectID.Location = new System.Drawing.Point(160, 16);
			this.ProjectID.Name = "ProjectID";
			this.ProjectID.Size = new System.Drawing.Size(64, 21);
			this.ProjectID.TabIndex = 3;
			this.ProjectID.Text = "";
			// 
			// LinkmanID
			// 
			this.LinkmanID.Location = new System.Drawing.Point(160, 56);
			this.LinkmanID.Name = "LinkmanID";
			this.LinkmanID.Size = new System.Drawing.Size(64, 21);
			this.LinkmanID.TabIndex = 4;
			this.LinkmanID.Text = "";
			// 
			// PreRemindPro
			// 
			this.PreRemindPro.Location = new System.Drawing.Point(160, 96);
			this.PreRemindPro.Name = "PreRemindPro";
			this.PreRemindPro.Size = new System.Drawing.Size(64, 21);
			this.PreRemindPro.TabIndex = 5;
			this.PreRemindPro.Text = "";
			// 
			// submit
			// 
			this.submit.Location = new System.Drawing.Point(56, 136);
			this.submit.Name = "submit";
			this.submit.Size = new System.Drawing.Size(56, 24);
			this.submit.TabIndex = 6;
			this.submit.Text = "确定";
			this.submit.Click += new System.EventHandler(this.submit_Click);
			// 
			// cancel
			// 
			this.cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.cancel.Location = new System.Drawing.Point(152, 136);
			this.cancel.Name = "cancel";
			this.cancel.Size = new System.Drawing.Size(56, 24);
			this.cancel.TabIndex = 7;
			this.cancel.Text = "取消";
			// 
			// remind_project
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.Color.AliceBlue;
			this.CancelButton = this.cancel;
			this.ClientSize = new System.Drawing.Size(264, 174);
			this.Controls.Add(this.cancel);
			this.Controls.Add(this.submit);
			this.Controls.Add(this.PreRemindPro);
			this.Controls.Add(this.LinkmanID);
			this.Controls.Add(this.ProjectID);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.MaximumSize = new System.Drawing.Size(272, 208);
			this.MinimumSize = new System.Drawing.Size(272, 208);
			this.Name = "remind_project";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "remind_project";
			this.ResumeLayout(false);

		}
		#endregion

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

⌨️ 快捷键说明

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