Scheduled time |
2 days |
Development |
3h |
Demand analysis |
2h |
Build design |
2h |
Review |
1h |
Canonical code |
2h |
Design |
2h |
Code type |
4h |
Review |
1/2h |
Test |
1h |
Test report |
3h |
Summarize |
1h |
|
|
|
|
public partial class Form1:form
{
Public Form1 ()
{
InitializeComponent ();
}
int n = 1;
private void Button1_Click (object sender, EventArgs e)
{
int a1 = Int. Parse (txta1. Text);
int a2 = Int. Parse (Txta2. Text);
int b1 = Int. Parse (TXTB1. Text);
int b2 = Int. Parse (TXTB2. Text);
int c1 = Int. Parse (TXTC1. Text);
int c2 = Int. Parse (TXTC2. Text);
if (A1 < 9)
{
Txta1. Text = 0 + (a1 + 1). ToString ();
}
Else
{
if (n = = 5)
{
if (A1 >= && A1 <= A2 | | A1 <)
{
Txta1. Text = (A1 + 1). ToString ();
}
Else
{
Txtb1. Text = (B1 + 1). ToString ();
Txtc1. Text = (c1 + 1). ToString ();
Txtjieju. Text + = "First" + N + "bureau" + (A1 + 1). ToString () + ":" + txta2. Text + "\ r" + "\ n";
Txtc2. Text = "0";
}
}
Else
{
if (A1 >= && A1 <= A2 | | A1 < 24)
{
Txta1. Text = (A1 + 1). ToString ();
}
Else
{
Txtb1. Text = (B1 + 1). ToString ();
Txtc1. Text = (c1 + 1). ToString ();
Txtjieju. Text + = "First" + N + "bureau" + (A1 + 1). ToString () + ":" + txta2. Text + "\ r" + "\ n";
Txta1. Text = "00";
Txta2. Text = "00";
Txtc2. Text = "0";
Txtm. Text = "First" + (n + 1) + "field";
m = m + 1;
}
}
}
if (txtb1. Text = = "3")
{
Txta1. Text = "00";
Txta2. Text = "00";
Txtb1. Text = "0";
Txtb2. Text = "0";
Txtc1. Text = "0";
Txtc2. Text = "0";
m = 0;
Txtm. Text = "First" + (M + 1) + "field";
Txtjieju. Text + = "First" + M + "bureau" + (A1 + 1). ToString () + ":" + txta2. Text + "\ r" + "\ n" + TXTD1. Text + "Win";
}
}
private void Button2_Click (object sender, EventArgs e)
{
int a1 = Int. Parse (txta1. Text);
int a2 = Int. Parse (Txta2. Text);
int b1 = Int. Parse (TXTB1. Text);
int b2 = Int. Parse (TXTB2. Text);
int c1 = Int. Parse (TXTC1. Text);
int c2 = Int. Parse (TXTC2. Text);
if (A2 < 9)
{
Txta2. Text = 0 + (a2 + 1). ToString ();
}
Else
{
if (n = = 5)
{
if (A2 >= && a2 <= A1 | | A2 <)
{
Txta2. Text = (A2 + 1). ToString ();
}
Else
{
Txtb2. Text = (b2 + 1). ToString ();
Txtc2. Text = (C2 + 1). ToString ();
Txtjieju. Text + = "First" + M + "bureau" + Txta1. Text + ":" + (A2 + 1). ToString () + "\ r" + "\ n";
Txta1. Text = "00";
Txta2. Text = "00";
Txtc1. Text = "0";
}
}
if (A2 >= && A2 <= a1| | a2<24)
{
Txta2. Text = (A2 + 1). ToString ();
}
Else
{
Txtb2. Text = (b2 + 1). ToString ();
Txtc2. Text = (C2 + 1). ToString ();
Txtjieju. Text + = "First" + M + "bureau" + Txta1. Text + ":" + (A2 + 1). ToString () + "\ r" + "\ n";
Txta1. Text = "00";
Txta2. Text = "00";
Txtc1. Text = "0";
Txtm. Text = "First" + (M + 1) + "field";
N = n + 1;
}
}
if (TXTB2. Text = = "3")
{
Txta1. Text = "00";
Txta2. Text = "00";
Txtb1. Text = "0";
Txtb2. Text = "0";
Txtc1. Text = "0";
Txtc2. Text = "0";
m = 0;
Txtm. Text = "First" + (n + 1) + "field";
Txtjieju. Text + = "First" + N + "bureau" + Txta1. Text + ":" + (A2 + 1). ToString () + "\ r" + "\ n" + txtd2. Text + "Win";
}
}
15 Week Summary