📄 project.cs
字号:
"签约",
"中止"});
this.ProjectStatus.Location = new System.Drawing.Point(88, 136);
this.ProjectStatus.Name = "ProjectStatus";
this.ProjectStatus.Size = new System.Drawing.Size(64, 20);
this.ProjectStatus.TabIndex = 13;
//
// label8
//
this.label8.Location = new System.Drawing.Point(168, 136);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(64, 16);
this.label8.TabIndex = 14;
this.label8.Text = "创建日期:";
//
// StartTime
//
this.StartTime.Location = new System.Drawing.Point(232, 136);
this.StartTime.Name = "StartTime";
this.StartTime.Size = new System.Drawing.Size(80, 21);
this.StartTime.TabIndex = 15;
this.StartTime.Text = "";
//
// label9
//
this.label9.Location = new System.Drawing.Point(8, 168);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(104, 16);
this.label9.TabIndex = 16;
this.label9.Text = "签约日期:";
//
// SignTime
//
this.SignTime.Location = new System.Drawing.Point(72, 168);
this.SignTime.Name = "SignTime";
this.SignTime.Size = new System.Drawing.Size(80, 21);
this.SignTime.TabIndex = 17;
this.SignTime.Text = "";
//
// label10
//
this.label10.Location = new System.Drawing.Point(8, 200);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(96, 16);
this.label10.TabIndex = 18;
this.label10.Text = "项目内容描述:";
//
// label11
//
this.label11.Location = new System.Drawing.Point(176, 200);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(80, 16);
this.label11.TabIndex = 19;
this.label11.Text = "经验教训:";
//
// ProjectContent
//
this.ProjectContent.Location = new System.Drawing.Point(24, 224);
this.ProjectContent.Multiline = true;
this.ProjectContent.Name = "ProjectContent";
this.ProjectContent.Size = new System.Drawing.Size(112, 88);
this.ProjectContent.TabIndex = 20;
this.ProjectContent.Text = "";
//
// Remark
//
this.Remark.Location = new System.Drawing.Point(176, 224);
this.Remark.Multiline = true;
this.Remark.Name = "Remark";
this.Remark.Size = new System.Drawing.Size(120, 88);
this.Remark.TabIndex = 21;
this.Remark.Text = "";
//
// label12
//
this.label12.Location = new System.Drawing.Point(168, 168);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(64, 16);
this.label12.TabIndex = 22;
this.label12.Text = "终止日期:";
//
// OverTime
//
this.OverTime.Location = new System.Drawing.Point(224, 168);
this.OverTime.Name = "OverTime";
this.OverTime.Size = new System.Drawing.Size(88, 21);
this.OverTime.TabIndex = 23;
this.OverTime.Text = "";
//
// psubmit
//
this.psubmit.Location = new System.Drawing.Point(56, 320);
this.psubmit.Name = "psubmit";
this.psubmit.TabIndex = 24;
this.psubmit.Text = "确定";
this.psubmit.Click += new System.EventHandler(this.psubmit_Click);
//
// preset
//
this.preset.Location = new System.Drawing.Point(184, 320);
this.preset.Name = "preset";
this.preset.TabIndex = 25;
this.preset.Text = "重置";
this.preset.Click += new System.EventHandler(this.preset_Click);
//
// label13
//
this.label13.ForeColor = System.Drawing.Color.Red;
this.label13.Location = new System.Drawing.Point(120, 16);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(16, 16);
this.label13.TabIndex = 26;
this.label13.Text = "*";
//
// label14
//
this.label14.ForeColor = System.Drawing.Color.Red;
this.label14.Location = new System.Drawing.Point(120, 56);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(16, 16);
this.label14.TabIndex = 26;
this.label14.Text = "*";
//
// label15
//
this.label15.ForeColor = System.Drawing.Color.Red;
this.label15.Location = new System.Drawing.Point(296, 56);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(16, 16);
this.label15.TabIndex = 26;
this.label15.Text = "*";
//
// label16
//
this.label16.ForeColor = System.Drawing.Color.Red;
this.label16.Location = new System.Drawing.Point(296, 16);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(16, 16);
this.label16.TabIndex = 26;
this.label16.Text = "*";
//
// label17
//
this.label17.ForeColor = System.Drawing.Color.Red;
this.label17.Location = new System.Drawing.Point(144, 96);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(16, 16);
this.label17.TabIndex = 26;
this.label17.Text = "*";
//
// project
//
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(320, 358);
this.Controls.Add(this.label13);
this.Controls.Add(this.preset);
this.Controls.Add(this.psubmit);
this.Controls.Add(this.OverTime);
this.Controls.Add(this.Remark);
this.Controls.Add(this.ProjectContent);
this.Controls.Add(this.SignTime);
this.Controls.Add(this.StartTime);
this.Controls.Add(this.LFrequency);
this.Controls.Add(this.LinkmanID);
this.Controls.Add(this.ManagerID);
this.Controls.Add(this.ClientID);
this.Controls.Add(this.ProjectName);
this.Controls.Add(this.ProjectID);
this.Controls.Add(this.label12);
this.Controls.Add(this.label11);
this.Controls.Add(this.label10);
this.Controls.Add(this.label9);
this.Controls.Add(this.label8);
this.Controls.Add(this.ProjectStatus);
this.Controls.Add(this.label7);
this.Controls.Add(this.label6);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.label14);
this.Controls.Add(this.label15);
this.Controls.Add(this.label16);
this.Controls.Add(this.label17);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(328, 392);
this.MinimumSize = new System.Drawing.Size(328, 392);
this.Name = "project";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "project 带*号栏为必填栏";
this.ResumeLayout(false);
}
#endregion
private void psubmit_Click(object sender, System.EventArgs e)
{
if(Remark.Enabled == true && (ProjectID.Text == "" || ProjectName.Text == ""))
MessageBox.Show("Please Input ProjectID and ProjectName!");
else
{
psubmit.BackColor = Color.GreenYellow;
Close();
}
}
private void preset_Click(object sender, System.EventArgs e)
{
ProjectID.Clear();
ProjectName.Clear();
ManagerID.Clear();
LinkmanID.Clear();
LFrequency.Clear();
ProjectStatus.SelectedIndex = -1;
ProjectContent.Clear();
StartTime.Clear();
SignTime.Clear();
OverTime.Clear();
Remark.Clear();
ClientID.Clear();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -