本周个人作业总结

个人PSP

计划

*估计这个任务需要多长时间:估计需要三天的时间完成这个项目。

开发

*需求分析:

用户故事:作为一个观众,我希望了解没场比赛的比分,以便了解比赛的情况。

从分析用户故事可以知道完成这个程序需要完成选择队伍和查看比赛记录的功能。

任务:作为观众需要知道每场比赛的队伍、第几局、及比赛结果;

生成设计文档:

代码规范:无

 具体设计:

private void label2_Click(object sender, EventArgs e)
{

textBox2.Text = "记分板:" + textBox1.Text + ":" + textBox1.Text  + textBox1.Text;

}

private void button3_Click(object sender, EventArgs e)
{
textBox1.Text = "";
textBox2.Text = "";
button2.Enabled = false;
}

private void textBox2_TextChanged(object sender, EventArgs e)
{
if (textBox1.Text != "")
{
button2.Enabled = true;
}
else
{
button2.Enabled = false;
}
}

private void textBox2_TextChanged(object sender, EventArgs e)
{

}

private void button3_Click(object sender, EventArgs e)
{
this.Close();
index q = new index();
q.Show();
}
}

原文地址:https://www.cnblogs.com/yanan123/p/6220796.html