• 第18周项目冲刺流程总结


    个人项目流程

    计划

    1,估计项目总用时:需要一周左右时间

    开发

    1,需求分析:作为一名排球教练的助手,我需要统计球队的每一名球员,在球场各个技术动作(救球,发球,拦网,扣球等)的发挥情况;每个球员的技术习惯及队员组合,以便教练员指定比赛的对策。

    2.生成设计文档:自己做了简图

    3.设计复审:组员合力进行设计复审

    4.代码规范:Visual Studio2010

    5.具体设计:

    6.具体编码:

    namespace 排球
    {

    public partial class ZhuShou : Form
    {

    public ZhuShou()
    {
    InitializeComponent();
    }

    private void btnOK_Click(object sender, EventArgs e)
    {
    string ZhuGong111 = txtZhuGong1.Text;
    string ZhuGong222 = txtZhuGong2.Text;
    string FuGong111 = txtFuGong1.Text;
    string FuGong222 = txtFuGong2.Text;
    string JieYing111 = txtJieYing.Text;
    string ErChuan111 = txtErChuan.Text;
    string ZiYouRen111 = txtZiYouRen.Text;
    if (string.IsNullOrEmpty(ZhuGong111)) { MessageBox.Show("请输入本场比赛的主攻手一"); }
    else if (string.IsNullOrEmpty(FuGong111)) { MessageBox.Show("请输入本场比赛的副攻手一"); }
    else if (string.IsNullOrEmpty(ZhuGong222)) { MessageBox.Show("请输入本场比赛的主攻手二"); }
    else if (string.IsNullOrEmpty(FuGong222)) { MessageBox.Show("请输入本场比赛的副攻手二"); }
    else if (string.IsNullOrEmpty(JieYing111)) { MessageBox.Show("请输入本场比赛的接应"); }
    else if (string.IsNullOrEmpty(ErChuan111)) { MessageBox.Show("请输入本场比赛的二传"); }
    else if (string.IsNullOrEmpty(ZiYouRen111)) { MessageBox.Show("请输入本场比赛的自由人"); }
    else
    {
    groupBox1.Visible = false;
    groupBox2.Visible = true;
    linkZhuGong1.Text = ZhuGong1.Text + txtZhuGong1.Text;
    linkFuGong1.Text=FuGong1.Text+txtFuGong1.Text;
    linkZhuGong2.Text = ZhuGong2.Text + txtZhuGong2.Text;
    linkFuGong2.Text = FuGong2.Text + txtFuGong2.Text;
    linkJieYing.Text = JieYing.Text + txtJieYing.Text;
    linkErChuan.Text = ErChuan.Text + txtErChuan.Text;
    linkZiYouRen.Text = ZiYouRen.Text + txtZiYouRen.Text;
    }

    }

    private void ZhouShou_Load(object sender, EventArgs e)
    {
    groupBox1.Visible = true;
    groupBox2.Visible = false;
    }
    int i = 0;

    private void button1_Click(object sender, EventArgs e)
    {
    i++;
    txtFen.Text = lblName.Text + button1.Text + " " + i;


    }
    int FQ = 0;
    private void btnFaQiu_Click(object sender, EventArgs e)
    {
    FQ++;
    txtFen.AppendText(lblName.Text+btnFaQiu.Text+" "+FQ);

    }
    int KQ=0;
    private void btnKouQiu_Click(object sender, EventArgs e)
    {
    KQ++;
    txtFen.AppendText(lblName.Text + btnKouQiu.Text + " " + KQ);



    }
    int CW=0;
    private void btnChouWang_Click(object sender, EventArgs e)
    {
    CW++;
    txtFen.AppendText(lblName.Text + btnChouWang.Text + " " + CW);
    }
    int DQ = 0;
    private void btnDiaoQiu_Click(object sender, EventArgs e)
    {
    DQ++;
    txtFen.AppendText(lblName.Text + btnDiaoQiu.Text + " " + DQ);
    }
    int LWCJ = 0;
    private void btnLWChuJie_Click(object sender, EventArgs e)
    {
    LWCJ++;
    txtFen.AppendText(lblName.Text + btnLWChuJie.Text + " " + LWCJ);
    }
    int FQSW = 0;
    private void btnFaQiuShiWu_Click(object sender, EventArgs e)
    {
    FQSW++;
    txtFen.AppendText(lblName.Text + btnFaQiuShiWu.Text + " " + FQSW);
    }
    int KQCJ = 0;
    private void btnKouQiuChuJie_Click(object sender, EventArgs e)
    {
    KQCJ++;
    txtFen.AppendText(lblName.Text + btnKouQiuChuJie.Text + " " + KQCJ);
    }
    private void lastOK_Click(object sender, EventArgs e)
    {
    //创建一个文件流,用以写入或者创建一个StreamWriter
    FileStream fs = new FileStream("C:\file.txt", FileMode.OpenOrCreate, FileAccess.Write);
    StreamWriter m_streamWriter = new StreamWriter(fs);
    m_streamWriter.Flush(); // 使用StreamWriter来往文件中写入内容
    m_streamWriter.BaseStream.Seek(0, SeekOrigin.Begin);
    // 把richTextBox1中的内容写入文件
    m_streamWriter.Write(txtFen.Text);
    //关闭此文件 m_streamWriter.Flush ( ) ;
    m_streamWriter.Close();
    MessageBox.Show("保存成功!");
    groupBox2.Visible = false;
    groupBox1.Visible = true;
    }

    private void linkZhuGong1_LinkClicked_1(object sender, LinkLabelLinkClickedEventArgs e)
    {
    lblName.Text = linkZhuGong1.Text;
    }

    private void linkFuGong1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
    {
    lblName.Text = linkFuGong1.Text;
    }

    private void linkZhuGong2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
    {
    lblName.Text = linkZhuGong2.Text;
    }

    private void linkFuGong2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
    {
    lblName.Text = linkFuGong2.Text;
    }

    private void linkJieYing_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
    {
    lblName.Text = linkJieYing.Text;
    }

    private void linkErChuan_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
    {
    lblName.Text = linkErChuan.Text;
    }

    private void linkZiYouRen_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
    {
    lblName.Text = linkZiYouRen.Text;
    }

    private void panel2_Paint(object sender, PaintEventArgs e)
    {

    }

    private void groupBox2_Enter(object sender, EventArgs e)
    {

    }

    7.代码复审:组员复审

    8.测试:成功

    报告

    1.测试报告:在课堂上进行过冲刺心得总结

    2.计算工作量:适中

  • 相关阅读:
    hdu 1181 (搜索BFS,深搜DFS,并查集)
    [置顶] ZSTACK之OSAL_Nv非易失性存储解读上
    Android中利用Fragment显示为两屏
    WCF也可以做聊天程序
    Myeclipse 连接MSSqlServer
    Mysql和Oracle的卸载
    第 5堂作业
    hdu 3421 Max Sum II
    【求助】一个菜鸟java作业,帮忙看一下错在哪儿,题目是判断回文数
    netcat使用
  • 原文地址:https://www.cnblogs.com/yfy199628/p/6253587.html
Copyright © 2020-2023  润新知