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

    计划
       这个项目大概要用六天时间
    开发
      需求分析 作为一个排球观众,我希望知道每场比赛得分,以便掌握比赛的赛程。
      设计文档  加分项目、输入队伍 、判断胜负、查看比分。

    private void btnH_Click(object sender, EventArgs e)
            {
                int H = Convert.ToInt32(txtH.Text);
                int L = Convert.ToInt32(txtL.Text);
                int H1 = Convert.ToInt32(txtH1.Text);
                int L1 = Convert.ToInt32(txtL1.Text);
                txtH.Text = (H+1).ToString();
              
                if (H >= 24 && (H - L) > 1)
                {
                    txtH1.Text = (Convert.ToInt32(txtH1.Text) + 1).ToString();
                    if ((H1 + L1) == 0)
                    {
                        txtCount1.Text += "第" + (i++) + "局:" + txtH.Text + ":" + txtL.Text;
                    }
                    if ((H1 + L1) == 1)
                    {
                        txtCount2.Text += "第" + (i++) + "局:" + txtH.Text + ":" + txtL.Text;
                    }
                    if ((H1 + L1) == 2)
                    {
                        txtCount3.Text += "第" + (i++) + "局:" + txtH.Text + ":" + txtL.Text;
                    }
                    if ((H1 + L1) == 3)
                    {
                        txtCount4.Text += "第" + (i++) + "局:" + txtH.Text + ":" + txtL.Text;
                    }
                    if ((H1 + L1) == 4)
                    {
                        txtCount5.Text += "第" + (i++) + "局:" + txtH.Text + ":" + txtL.Text;
                    }
                    txtH.Text = "0";
                    txtL.Text = "0";

                    if (txtH1.Text == "3")
                    {
                        MessageBox.Show("红方胜利");
                        Insert();
                        txtH.Text = "0";
                        txtH1.Text = "0";
                        txtL.Text = "0";
                        txtL1.Text = "0";
                        txtCount1.Clear();
                        txtCount2.Clear();
                        txtCount3.Clear();
                        txtCount4.Clear();
                        txtCount5.Clear();

                    }
                }

  • 相关阅读:
    WPF 关于拖拽打开文件的注意事项
    asp.net core 3.1中对Mongodb BsonDocument的序列化和反序列化支持
    用百度webuploader分片上传大文件
    多线程学习笔记
    web.config数据库连接字符串加密
    Visual Studio 2010 常用快捷方式
    Team Foundation Server 2013 日常使用使用手册(四)分支与合并
    Team Foundation Server 2013 日常使用使用手册(三)上传新工程、创建任务、创建bug、设置预警
    Team Foundation Server 2013 日常使用使用手册(二)修改、签入、撤销、回滚、对比代码变更
    Team Foundation Server 2013 日常使用使用手册(一)-本地连接TFS、查看任务
  • 原文地址:https://www.cnblogs.com/hslym-1202B/p/6219853.html
Copyright © 2011-2022 走看看