U
}
}
}
Using System;
Using System.Collections.Generic;
Using System.ComponentModel;
Using System.Data;
Using System.Drawing;
Using System.Linq;
Using System.Text;
Using System.Windows.Forms;
Namespace app
{
public partial class Form1:form
{
Public Form1 ()
{
InitializeComponent ();
}
private void Button1_Click (object sender, EventArgs e)
{
Form2 FR = new Form2 ();
Fr. Show ();
This. Hide ();
}
private void Form1_Load (object sender, EventArgs e)
{
}
private void Button3_Click (object sender, EventArgs e)
{
This. Close ();
}
private void Button2_Click (object sender, EventArgs e)
{
Button2. Enabled = false;
}
}
}
Sing System;
Using System.Collections.Generic;
Using System.ComponentModel;
Using System.Data;
Using System.Drawing;
Using System.Linq;
Using System.Text;
Using System.Windows.Forms;
Namespace app
{
public partial class Form2:form
{
Public Form2 ()
{
InitializeComponent ();
}
private void Button1_Click (object sender, EventArgs e)
{
This. Close ();
Form1 r = new Form1 ();
R.show ();
}
private void Form2_load (object sender, EventArgs e)
{
textbox3.enabled = false;
Button2. Enabled = false;
}
private void textBox1_TextChanged (object sender, EventArgs e)
{
if (textbox1.text== "")
{
Button2. Enabled = false;
}
}
private void Button3_Click (object sender, EventArgs e)
{
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
Button2. Enabled = false;
}
private void Button2_Click (object sender, EventArgs e)
{
TextBox3.Text = "Match result:" +textbox1.text + ":" + TextBox2.Text + "=26:24" +textbox1.text + ": Victory" +textbox2. Text + ": Cherish defeat";
}
private void Textbox2_textchanged (object sender, EventArgs e)
{
if (TextBox1.Text! = "" &&textbox2.text! = "")
{
Button2. Enabled = true;
}
Else
{
Button2. Enabled = false;
}
This week's software process