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

📄 linker.cs

📁 软件工程的课程作业
💻 CS
📖 第 1 页 / 共 2 页
字号:
			this.label9.Location = new System.Drawing.Point(16, 192);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(72, 16);
			this.label9.TabIndex = 16;
			this.label9.Text = "办公电话:";
			// 
			// LWorkPhone
			// 
			this.LWorkPhone.Location = new System.Drawing.Point(80, 184);
			this.LWorkPhone.Name = "LWorkPhone";
			this.LWorkPhone.Size = new System.Drawing.Size(104, 21);
			this.LWorkPhone.TabIndex = 9;
			this.LWorkPhone.Text = "";
			// 
			// label10
			// 
			this.label10.Location = new System.Drawing.Point(216, 184);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(48, 23);
			this.label10.TabIndex = 18;
			this.label10.Text = "手机:";
			// 
			// LCellPhone
			// 
			this.LCellPhone.Location = new System.Drawing.Point(280, 184);
			this.LCellPhone.Name = "LCellPhone";
			this.LCellPhone.Size = new System.Drawing.Size(112, 21);
			this.LCellPhone.TabIndex = 10;
			this.LCellPhone.Text = "";
			// 
			// label11
			// 
			this.label11.Location = new System.Drawing.Point(16, 224);
			this.label11.Name = "label11";
			this.label11.Size = new System.Drawing.Size(72, 23);
			this.label11.TabIndex = 20;
			this.label11.Text = "家庭电话:";
			// 
			// LHomePhone
			// 
			this.LHomePhone.Location = new System.Drawing.Point(80, 224);
			this.LHomePhone.Name = "LHomePhone";
			this.LHomePhone.Size = new System.Drawing.Size(104, 21);
			this.LHomePhone.TabIndex = 11;
			this.LHomePhone.Text = "";
			// 
			// label12
			// 
			this.label12.Location = new System.Drawing.Point(216, 224);
			this.label12.Name = "label12";
			this.label12.Size = new System.Drawing.Size(72, 16);
			this.label12.TabIndex = 22;
			this.label12.Text = "其他电话:";
			// 
			// LOtherPhone
			// 
			this.LOtherPhone.Location = new System.Drawing.Point(280, 224);
			this.LOtherPhone.Name = "LOtherPhone";
			this.LOtherPhone.Size = new System.Drawing.Size(112, 21);
			this.LOtherPhone.TabIndex = 12;
			this.LOtherPhone.Text = "";
			// 
			// label13
			// 
			this.label13.Location = new System.Drawing.Point(16, 264);
			this.label13.Name = "label13";
			this.label13.Size = new System.Drawing.Size(56, 16);
			this.label13.TabIndex = 24;
			this.label13.Text = "传真:";
			// 
			// LFax
			// 
			this.LFax.Location = new System.Drawing.Point(80, 264);
			this.LFax.Name = "LFax";
			this.LFax.Size = new System.Drawing.Size(104, 21);
			this.LFax.TabIndex = 13;
			this.LFax.Text = "";
			// 
			// label14
			// 
			this.label14.Location = new System.Drawing.Point(216, 264);
			this.label14.Name = "label14";
			this.label14.Size = new System.Drawing.Size(72, 16);
			this.label14.TabIndex = 26;
			this.label14.Text = "电子邮件:";
			// 
			// LEmail
			// 
			this.LEmail.Location = new System.Drawing.Point(280, 264);
			this.LEmail.Name = "LEmail";
			this.LEmail.Size = new System.Drawing.Size(112, 21);
			this.LEmail.TabIndex = 14;
			this.LEmail.Text = "";
			// 
			// label15
			// 
			this.label15.Location = new System.Drawing.Point(16, 304);
			this.label15.Name = "label15";
			this.label15.Size = new System.Drawing.Size(72, 16);
			this.label15.TabIndex = 28;
			this.label15.Text = "性格描述:";
			// 
			// LCharacter
			// 
			this.LCharacter.Location = new System.Drawing.Point(16, 328);
			this.LCharacter.Multiline = true;
			this.LCharacter.Name = "LCharacter";
			this.LCharacter.Size = new System.Drawing.Size(168, 72);
			this.LCharacter.TabIndex = 15;
			this.LCharacter.Text = "";
			// 
			// label16
			// 
			this.label16.Location = new System.Drawing.Point(216, 304);
			this.label16.Name = "label16";
			this.label16.Size = new System.Drawing.Size(72, 16);
			this.label16.TabIndex = 30;
			this.label16.Text = "爱好描述:";
			// 
			// LFavorite
			// 
			this.LFavorite.Location = new System.Drawing.Point(216, 328);
			this.LFavorite.Multiline = true;
			this.LFavorite.Name = "LFavorite";
			this.LFavorite.Size = new System.Drawing.Size(176, 72);
			this.LFavorite.TabIndex = 16;
			this.LFavorite.Text = "";
			// 
			// label17
			// 
			this.label17.Location = new System.Drawing.Point(16, 416);
			this.label17.Name = "label17";
			this.label17.Size = new System.Drawing.Size(72, 16);
			this.label17.TabIndex = 32;
			this.label17.Text = "备注:";
			// 
			// LNote
			// 
			this.LNote.Location = new System.Drawing.Point(16, 432);
			this.LNote.Multiline = true;
			this.LNote.Name = "LNote";
			this.LNote.Size = new System.Drawing.Size(368, 48);
			this.LNote.TabIndex = 17;
			this.LNote.Text = "";
			// 
			// lsubmit
			// 
			this.lsubmit.Location = new System.Drawing.Point(88, 496);
			this.lsubmit.Name = "lsubmit";
			this.lsubmit.TabIndex = 18;
			this.lsubmit.Text = "确定";
			this.lsubmit.Click += new System.EventHandler(this.lsubmit_Click);
			// 
			// lreset
			// 
			this.lreset.Location = new System.Drawing.Point(224, 496);
			this.lreset.Name = "lreset";
			this.lreset.TabIndex = 19;
			this.lreset.Text = "重置";
			this.lreset.Click += new System.EventHandler(this.lreset_Click);
			// 
			// label18
			// 
			this.label18.ForeColor = System.Drawing.Color.Red;
			this.label18.Location = new System.Drawing.Point(160, 16);
			this.label18.Name = "label18";
			this.label18.Size = new System.Drawing.Size(16, 16);
			this.label18.TabIndex = 33;
			this.label18.Text = "*";
			// 
			// label19
			// 
			this.label19.ForeColor = System.Drawing.Color.Red;
			this.label19.Location = new System.Drawing.Point(328, 16);
			this.label19.Name = "label19";
			this.label19.Size = new System.Drawing.Size(16, 16);
			this.label19.TabIndex = 33;
			this.label19.Text = "*";
			// 
			// label20
			// 
			this.label20.ForeColor = System.Drawing.Color.Red;
			this.label20.Location = new System.Drawing.Point(184, 96);
			this.label20.Name = "label20";
			this.label20.Size = new System.Drawing.Size(16, 16);
			this.label20.TabIndex = 33;
			this.label20.Text = "*";
			// 
			// linker
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.Color.AliceBlue;
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = new System.Drawing.Size(400, 534);
			this.Controls.Add(this.label18);
			this.Controls.Add(this.lreset);
			this.Controls.Add(this.lsubmit);
			this.Controls.Add(this.LNote);
			this.Controls.Add(this.LFavorite);
			this.Controls.Add(this.LCharacter);
			this.Controls.Add(this.LEmail);
			this.Controls.Add(this.LFax);
			this.Controls.Add(this.LOtherPhone);
			this.Controls.Add(this.LHomePhone);
			this.Controls.Add(this.LCellPhone);
			this.Controls.Add(this.LWorkPhone);
			this.Controls.Add(this.LBirthday);
			this.Controls.Add(this.LinkmanName);
			this.Controls.Add(this.ClientID);
			this.Controls.Add(this.LinkmanID);
			this.Controls.Add(this.label17);
			this.Controls.Add(this.label16);
			this.Controls.Add(this.label15);
			this.Controls.Add(this.label14);
			this.Controls.Add(this.label13);
			this.Controls.Add(this.label12);
			this.Controls.Add(this.label11);
			this.Controls.Add(this.label10);
			this.Controls.Add(this.label9);
			this.Controls.Add(this.LTitle);
			this.Controls.Add(this.label8);
			this.Controls.Add(this.LDuty);
			this.Controls.Add(this.label7);
			this.Controls.Add(this.LDepartment);
			this.Controls.Add(this.label6);
			this.Controls.Add(this.label5);
			this.Controls.Add(this.LinkmanSex);
			this.Controls.Add(this.label4);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.label19);
			this.Controls.Add(this.label20);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.MaximumSize = new System.Drawing.Size(408, 568);
			this.MinimumSize = new System.Drawing.Size(408, 568);
			this.Name = "linker";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "linker 带*号栏为必填栏";
			this.ResumeLayout(false);

		}
		#endregion

		private void LinkmanSex_SelectedIndexChanged(object sender, System.EventArgs e)
		{
			//int ii = LinkmanSex.SelectedIndex;
		}

		private void lsubmit_Click(object sender, System.EventArgs e)
		{
			if(LNote.Enabled == true && (LinkmanID.Text == "" || LinkmanName.Text == ""))
				MessageBox.Show("Please Input LinkmanID and LinkmanName!");
			else 
			{
/*				if(LinkmanSex.SelectedIndex != -1)
					LinkmanSexstr = (string) LinkmanSex.Items[LinkmanSex.SelectedIndex];
				LDepartmentstr = (string) LDepartment.Items[LDepartment.SelectedIndex];
				LDutystr = (string) LDuty.Items[LDuty.SelectedIndex];
				LTitlestr = (string) LTitle.Items[LTitle.SelectedIndex];*/
				lsubmit.BackColor = Color.GreenYellow;
				Close();
			}
		}

		private void lreset_Click(object sender, System.EventArgs e)
		{
		   LinkmanID.Clear();
		   LinkmanName.Clear();
		   LinkmanSex.SelectedIndex = -1;
		   LBirthday.Clear();
		   LDepartment.SelectedIndex  = -1;
		   LDuty.SelectedIndex = -1;
		   LTitle.SelectedIndex = -1;
		   LWorkPhone.Clear();
		   LCellPhone.Clear();
		   LHomePhone.Clear();
		   LOtherPhone.Clear();
		   LFax.Clear();
		   LEmail.Clear();
		   LCharacter.Clear();
		   LFavorite.Clear();
		   LNote.Clear();
		   ClientID.Clear();
		}
	}
}

⌨️ 快捷键说明

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