本周总结
2016-12-25 17:28 指尖环绕 阅读(190) 评论(0) 收藏 举报- 计划
估计此程序需要一周左右。
- 开发
- 1.需求分析
用户故事:作为一个观众,我希望了解某一场比赛的比分,以便了解赛况。(满意条件:精确到每一局的结果比分)。
从分析用例故事可以知道完成此程序需要这两项任务:选择队伍和查询比赛记录。
2.生成设计文档
3.设计复审 三个小时
4.代码规范 无
以下是程序的 活动图


private void button1_Click(object sender, EventArgs e)
{
if (txtjieju.Visible == false)
{
int a1 = int.Parse(txta1.Text);
int a2 = int.Parse(txta2.Text);
int b1 = int.Parse(txtb1.Text);
int b2 = int.Parse(txtb2.Text);
if (a1 < 9)
{
txta1.Text = 0 + (a1 + 1).ToString();
}
else
{
if (m == 5)
{
if (a1 >= 14 && a1 <= a2 || a1 < 14)
{
txta1.Text = (a1 + 1).ToString();
}
else
{
txtb1.Text = (b1 + 1).ToString();
// 把值插入数据库
txtjieju.Text += "第" + m + "局" + (a1 + 1).ToString() + ":" + txta2.Text + "\r" + "\n";
}
}
else
{
if (a1 >= 24 && a1 <= a2 || a1 < 24)
{
txta1.Text = (a1 + 1).ToString();
}
else
{
txtb1.Text = (b1 + 1).ToString();
txtjieju.Text += "第" + m + "局" + (a1 + 1).ToString() + ":" + txta2.Text + "\r" + "\n";
txta1.Text = "00";
txta2.Text = "00";
txtm.Text = "第 " + (m + 1) + " 场";
m = m + 1;
}
}
}
if (txtb1.Text == "3")
{
txta1.Text = "00";
txta2.Text = "00";
txtb1.Text = "0";
txtb2.Text = "0";
MessageBox.Show(txtd1.Text+"胜");
m = 0;
// 把值插入数据库
txtjieju.Text += txtd1.Text + "胜";
txtm.Text = "第 " + (m + 1) + " 场";
}
}
}
private void button2_Click(object sender, EventArgs e)
{
if (txtjieju.Visible == false)
{
int a1 = int.Parse(txta1.Text);
int a2 = int.Parse(txta2.Text);
int b1 = int.Parse(txtb1.Text);
int b2 = int.Parse(txtb2.Text);
if (a2 < 9)
{
txta2.Text = 0 + (a2 + 1).ToString();
}
else
{
if (m == 5)
{
if (a2 >= 14 && a2 <= a1 || a2 < 14)
{
txta2.Text = (a2 + 1).ToString();
}
else
{
txtb2.Text = (b2 + 1).ToString();
// 把值插入数据库未完成
txtjieju.Text += "第" + m + "局" + txta1.Text + ":" + (a2 + 1).ToString() + "\r" + "\n";
txta1.Text = "00";
txta2.Text = "00";
}
}
if (a2 >= 24 && a2 <= a1 || a2 < 24)
{
txta2.Text = (a2 + 1).ToString();
}
else
{
txtb2.Text = (b2 + 1).ToString();
// 把值插入数据库未完成
txtjieju.Text += "第" + m + "局" + txta1.Text + ":" + (a2 + 1).ToString() + "\r" + "\n";
txta1.Text = "00";
txta2.Text = "00";
txtm.Text = "第 " + (m + 1) + " 场";
m = m + 1;
}
}
浙公网安备 33010602011771号