Volleyball Coach Assistant

Source: Internet
Author: User

Personal PSP

Plan

* Estimate how long this task will take: an estimated five days to complete the project.

Development

* Demand Analysis:

User story: I am a volleyball coach's assistant, I need to know each player's technical action, each game each player's scoring situation, so that the coach better understand each player's performance and expertise.

Design Documentation:

1, the user opens the interface to enter;

2, users choose their own team to view the results of the match;

3, click the OK button to view;

4. View the result of the match in the text box.

Design review:

Review with classmates!

Specific code:

private void Form1_Load (object sender, EventArgs e)
{
Groupbox1.visible = true;
Groupbox2.visible = false;
}
int i = 0;

private void Button10_click (object sender, EventArgs e)
{
string ZhuGong111 = Txtzhugong1.text;
string ZhuGong222 = Txtzhugong2.text;
string A = Txta.text;
string B = Txtb.text;
String C=txt1. Text;
String D = Txt2. Text;
String E = Txterchuan. Text;
String F = Txttibu. Text;
if (string. IsNullOrEmpty (a)) {MessageBox.Show ("Please enter the main attack a" in this game);}
else if (string. IsNullOrEmpty (b)) {MessageBox.Show ("Please enter the main attack B of this Game");}
else if (string. IsNullOrEmpty (C)) {MessageBox.Show ("Please enter the game's assists a");}
else if (string. IsNullOrEmpty (D)) {MessageBox.Show ("Please enter the game's assists B");
else if (string. IsNullOrEmpty (E)) {MessageBox.Show ("Please enter the setter of this game");
else if (string. IsNullOrEmpty (F)) {MessageBox.Show ("Please enter a substitute for this game");}

Else
{
Groupbox1.visible = false;
Groupbox2.visible = true;
Dui1. Text = Label1. Text + txta.text;
Dui2. Text = Label2. Text + txtb.text;
Dui3. Text = Label3. Text + txt1. Text;
Dui4. Text = Label4. Text + txt2. Text;
Dui5. Text = Label5. Text + Txterchuan. Text;
Dui6. Text = Label6. Text + Txttibu. Text;

}
}

private void Button1_Click (object sender, EventArgs e)
{
i++;
Txtjieguo. Text = Lblname.text + button1. Text + "" + I;

}
int FQ = 0;

private void Button2_Click (object sender, EventArgs e)
{
fq++;
Txtjieguo. AppendText (Lblname.text+button2. text+ "" +FQ);

}
int KQ = 0;

private void Button3_Click (object sender, EventArgs e)
{
kq++;
Txtjieguo. AppendText (Lblname.text + button3. Text + "" + KQ);
}
int CW = 0;

private void Button4_Click (object sender, EventArgs e)
{
cw++;
Txtjieguo. AppendText (Lblname.text +button4. Text + "" + CW);
}
int DQ = 0;

private void Button5_click (object sender, EventArgs e)
{
dq++;
Txtjieguo. AppendText (Lblname.text + button5. Text + "" + CW);
}
int lwcj = 0;
private void Button6_click (object sender, EventArgs e)
{
lwcj++;
Txtjieguo. AppendText (Lblname.text + button6. Text + "" + LWCJ);
}
int fqsw = 0;
private void Button7_click (object sender, EventArgs e)
{
fqsw++;
Txtjieguo. AppendText (Lblname.text + button7. Text + "" + FQSW);
}
int kqcj = 0;
private void Button8_click (object sender, EventArgs e)
{
kqcj++;
Txtjieguo. AppendText (Lblname.text +button8. Text + "" + KQCJ);
}

private void Qd_click (object sender, EventArgs e)
{
FileStream fs = new FileStream ("C:\\file.txt", FileMode.OpenOrCreate, FileAccess.Write);
StreamWriter m_streamwriter = new StreamWriter (FS);
M_streamwriter.flush (); Write content to and from files using StreamWriter
M_streamWriter.BaseStream.Seek (0, Seekorigin.begin);
Write the contents of the RichTextBox1 to a file
M_streamwriter.write (Txtjieguo. Text);
Close this file M_streamwriter.flush ();
M_streamwriter.close ();
MessageBox.Show ("Saved successfully! ");
Groupbox2.visible = false;
Groupbox1.visible = true;
}

private void Dui1_textchanged (object sender, EventArgs e)
{
Lblname.text = Dui1. Text;
}

private void Dui2_textchanged (object sender, EventArgs e)
{
Lblname.text = Dui2. Text;
}

private void Dui3_textchanged (object sender, EventArgs e)
{
Lblname.text = Dui3. Text;
}

private void Dui4_textchanged (object sender, EventArgs e)
{
Lblname.text = Dui4. Text;
}

private void Dui5_textchanged (object sender, EventArgs e)
{
Lblname.text = Dui5. Text;
}

private void Dui6_textchanged (object sender, EventArgs e)
{
Lblname.text = Dui6. Text;
}

}
}

Test:

The software works well;

Summary: According to the individual development process to do the audience to view the results of the competition, but also need to improve, continue!

It takes three days to complete the coding and design.

Volleyball Coach Assistant

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.