• 第十六周个人总结


    本周我们主要学了排球积分程序,开了站立会议,下面是本周的任务总结:

    .计划

    计划这个项目要做一个星期

    .开发

    用户故事:作为一个观众,我希望能看到队员的成绩,能看到单局比分和总比分,以便更加关心排球的成绩

    .代码复审

    这个工作还没有做

    .代码规范

    此工作已经做过

    .活动图如下:

    .具体设计

    代码如下:

    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {
    Form2 form2 = new Form2();
    form2.Show();
    }
    }

    public partial class Form2 : Form
    {
    public Form2()
    {
    InitializeComponent();
    }

    private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
    {

    }

    private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
    {
    if (comboBox1.Text == "日本队")
    {
    textBox6.Text = "日本队";
    }
    if (comboBox1.Text == "韩国队")
    {
    textBox6.Text = "韩国队";
    }
    if (comboBox1.Text == "荷兰队")
    {
    textBox6.Text = "荷兰队";
    }
    }

    private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
    {
    if (comboBox2.Text == "中国队")
    {
    textBox5.Text = "中国队";
    }
    if (comboBox2.Text == "美国队")
    {
    textBox5.Text = "美国队";
    }
    if (comboBox2.Text == "英国队")
    {
    textBox5.Text = "英国队";
    }
    }

    private void button2_Click(object sender, EventArgs e)
    {
    if(comboBox2.Text=="中国队"&&comboBox1.Text=="日本队")
    {
    textBox4.Text="2";
    textBox3.Text="3";
    }
    if (comboBox2.Text == "美国队" && comboBox1.Text == "韩国队")
    {
    textBox4.Text = "3";
    textBox3.Text = "2";
    }
    if (comboBox2.Text == "英国队" && comboBox1.Text == "荷兰队")
    {
    textBox4.Text = "0";
    textBox3.Text = "3";
    }
    }

    private void button1_Click(object sender, EventArgs e)
    {
    if (comboBox2.Text == "中国队" && comboBox1.Text == "日本队" && comboBox3.Text == "第一局")
    {
    textBox1.Text = "25";
    textBox2.Text = "23";
    }
    if (comboBox2.Text == "中国队" && comboBox1.Text == "日本队" && comboBox3.Text == "第二局")
    {
    textBox1.Text = "25";
    textBox2.Text = "20";
    }
    if (comboBox2.Text == "中国队" && comboBox1.Text == "日本队" && comboBox3.Text == "第三局")
    {
    textBox1.Text = "24";
    textBox2.Text = "25";
    }
    if (comboBox2.Text == "中国队" && comboBox1.Text == "日本队" && comboBox3.Text == "第四局")
    {
    textBox1.Text = "25";
    textBox2.Text = "19";
    }
    if (comboBox2.Text == "中国队" && comboBox1.Text == "日本队" && comboBox3.Text == "第五局")
    {
    textBox1.Text = "5";
    textBox2.Text = "15";
    }
    if (comboBox2.Text == "美国队" && comboBox1.Text == "韩国队" && comboBox3.Text == "第一局")
    {
    textBox1.Text = "25";
    textBox2.Text = "10";
    }
    if (comboBox2.Text == "美国队" && comboBox1.Text == "韩国队" && comboBox3.Text == "第二局")
    {
    textBox1.Text = "25";
    textBox2.Text = "22";
    }
    if (comboBox2.Text == "美国队" && comboBox1.Text == "韩国队" && comboBox3.Text == "第三局")
    {
    textBox1.Text = "24";
    textBox2.Text = "25";
    }
    if (comboBox2.Text == "美国队" && comboBox1.Text == "韩国队" && comboBox3.Text == "第四局")
    {
    textBox1.Text = "25";
    textBox2.Text = "23";
    }
    if (comboBox2.Text == "美国队" && comboBox1.Text == "韩国队" && comboBox3.Text == "第五局")
    {
    textBox1.Text = "12";
    textBox2.Text = "15";
    }
    if (comboBox2.Text == "英国队" && comboBox1.Text == "荷兰队" && comboBox3.Text == "第一局")
    {
    textBox1.Text = "25";
    textBox2.Text = "10";
    }
    if (comboBox2.Text == "英国队" && comboBox1.Text == "荷兰队" && comboBox3.Text == "第二局")
    {
    textBox1.Text = "25";
    textBox2.Text = "24";
    }
    if (comboBox2.Text == "英国队" && comboBox1.Text == "荷兰队" && comboBox3.Text == "第三局")
    {
    textBox1.Text = "25";
    textBox2.Text = "15";
    }
    if (comboBox2.Text == "英国队" && comboBox1.Text == "荷兰队" && comboBox3.Text == "第四局")
    {
    textBox1.Text = "0";
    textBox2.Text = "0";
    }
    if (comboBox2.Text == "英国队" && comboBox1.Text == "荷兰队" && comboBox3.Text == "第五局")
    {
    textBox1.Text = "0";
    textBox2.Text = "0";
    }
    }
    }

      关于本次的排球积分程序,我还有许多需要改进和努力的地方,还需要连数据库,但在连数据库方面有些困难,但是我还是会继续努力的。

  • 相关阅读:
    upc组队赛1 黑暗意志【stl-map】
    upc组队赛1 闪闪发光 【优先队列】
    upc组队赛1 流连人间的苏苏
    POJ 2387 Til the Cows Come Home 【最短路SPFA】
    POJ 2421 Constructing Roads 【最小生成树Kruscal】
    qrcode-使用
    submlie 配置php运行
    composer 安装laravel
    composer 配置镜像
    Laravel-队列
  • 原文地址:https://www.cnblogs.com/Apple0921/p/6219378.html
Copyright © 2020-2023  润新知