zoukankan      html  css  js  c++  java
  • 第十六周个人作业

      .计划

      估计此程序需要七天

     .开发

     .需求分析

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

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

     .代码复审  三个小时

     .代码规范 

     .具体设计  活动图:

     

      通过选择观众登录界面可以进行查分。首先选择要查看第几局的比分,之后点击“查看每局比分”按钮就可以查看每局得分情况了。还可以点击总比分的按钮,查看最后的胜利者。

           .部分具体代码

     1 using System;
     2 using System.Collections.Generic;
     3 using System.ComponentModel;
     4 using System.Data;
     5 using System.Drawing;
     6 using System.Linq;
     7 using System.Text;
     8 using System.Windows.Forms;
     9 using BLL;
    10 using 排球;
    11 
    12 
    13 namespace 排球计分三层
    14 {
    15     public partial class Form3 : Form
    16     {
    17         public Form3()
    18         {
    19             InitializeComponent();
    20         }
    21         But1BLL bll = new But1BLL();
    22         Form1 fom1 = new Form1();
    23         private void Form3_Load(object sender, EventArgs e)
    24         {
    25             
    26 
    27         }
    28 
    29         private void button1_Click(object sender, EventArgs e)
    30         {
    31 
    32             textBox2.Text = "25";
    33             if (comboBox1.Text == "第一局")
    34             {
    35                 textBox1.Text = "1";
    36                 textBox2.Text = "25";
    37             }
    38             if (comboBox1.Text == "第二局")
    39             {
    40                 textBox1.Text = "25";
    41                 textBox2.Text = "1";
    42             }
    43             if (comboBox1.Text == "第三局")
    44             {
    45                 textBox1.Text = "26";
    46                 textBox2.Text = "24";
    47             }
    48             if (comboBox1.Text == "第四局")
    49             {
    50                 textBox1.Text = "1";
    51                 textBox2.Text = "25";
    52             }
    53             if (comboBox1.Text == "第五局")
    54             {
    55                 textBox1.Text = "25";
    56                 textBox2.Text = "1";
    57             }
    58         }
    59 
    60         private void button2_Click(object sender, EventArgs e)
    61         {
    62             textBox3.Text = "3";
    63             textBox4.Text = "2";
    64         }
    65 
    66         private void button3_Click(object sender, EventArgs e)
    67         {
    68            
    69             this.Close();
    70           
    71         }
    72     }

      .界面设计

    1.选择身份

    2.观众界面,点击退出返回Form2

      关于代码测试和测试报告会在接下来几天完成。这个程序还不是很完善,并且还是没能连接数据库。不过基本的功能做出来了,后面我会继续完善的。

  • 相关阅读:
    2019山东ACM省赛K题 zoj4123 Happy Equation
    2019山东ACM省赛总结
    ds
    CCPC2018 桂林 A: Array Merge(贪心、带权并查集合并)
    temp
    BZOJ 1013 球形空间产生器(高斯消元)
    BZOJ 2973 石头游戏(矩阵构造,矩阵快速幂)
    POJ 3233 Matrix Power Series (矩阵乘法,分块矩阵)
    每日bing API
    《音乐商店》第3集:模型规划
  • 原文地址:https://www.cnblogs.com/LYDAN/p/6217854.html
Copyright © 2011-2022 走看看