人作业

.计划

           估计此程序需要天

 .开发

 .需求分析

 用户故事:作为一个观众,我希望了解某一场比赛的比分,以便了解赛况。(满意条件:精确到每一局的比分)。

 任务:  观众可以选择查看每局的比分。

设计文档:可以拆成四个小的任务

 .代码复审  六个小时

 .代码规范  无

.具体设计  活动图:

.部分代码

  private void button1_Click(object sender, EventArgs e)
        {
 
             textBox2.Text = "25";
             if (comboBox1.Text == "第一局")
             {
                 textBox1.Text = "1";
                 textBox2.Text = "25";
             }
             if (comboBox1.Text == "第二局")
             {
                 textBox1.Text = "25";
                 textBox2.Text = "1";
             }
             if (comboBox1.Text == "第三局")
             {
                 textBox1.Text = "26";
                textBox2.Text = "24";
            }
            if (comboBox1.Text == "第四局")
            {
                 textBox1.Text = "1";
                 textBox2.Text = "25";
            }
if (comboBox1.Text == "第五局") { textBox1.Text = "25"; textBox2.Text = "1"; } }

.运行界面








原文地址:https://www.cnblogs.com/19970515mm/p/6218380.html