private void button1_Click(object sender, EventArgs e)
{
double b, h;
b = Convert.ToInt32(textBox1.Text);
h = Convert.ToInt32(textBox2.Text);
textBox3.Text = String.Format("{0:F2}", (b * h) / 2);
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Text = "";
textBox2.Text = "";
textBox3.Text = "";
}
private void button3_Click(object sender, EventArgs e)
{
Close();
}
}
}
No hay comentarios:
Publicar un comentario