|
{
publicpartialclassForm1 : Form
{
public Form1()
{
InitializeComponent();
}
privatevoid button5_Click(object sender, EventArgs
e)
{
Close();
}
privatevoid button1_Click(object sender, EventArgs
e)
{
int a = Convert.ToInt32(textBox1.Text);
int b = Convert.ToInt32(textBox2.Text);
textBox3.Text = Convert.ToString(a +
b);
}
privatevoid button2_Click(object sender, EventArgs
e)
{
int a = Convert.ToInt32(textBox1.Text);
int b = Convert.ToInt32(textBox2.Text);
textBox3.Text = Convert.ToString(a -
b);
}
privatevoid button3_Click(object sender, EventArgs
e)
{
int a = Convert.ToInt32(textBox1.Text);
int b = Convert.ToInt32(textBox2.Text);
textBox3.Text = Convert.ToString(a *
b);
}
privatevoid button4_Click(object sender, EventArgs
e)
{
int a = Convert.ToInt32(textBox1.Text);
int b = Convert.ToInt32(textBox2.Text);
textBox3.Text = Convert.ToString(a /
b);
}
privatevoid button6_Click(object sender, EventArgs
e)
{
textBox1.Clear();
}
privatevoid button7_Click(object sender, EventArgs
e)
{
textBox2.Clear();
}
privatevoid label1_Click(object sender, EventArgs
e)
{
}
}
}
0 comments:
Post a Comment