private void button1_Click(object sender, EventArgs e) { Geometria g = new Geometria(); double area = g.areaCirculo(Convert.ToInt32(radio.Value)); MessageBox.Show("El area es de " + area); }
private void button1_Click(object sender, EventArgs e) { Geometria g = new Geometria(); double area = g.areapentagono(Convert.ToInt32(lado1.Value), Convert.ToInt32(lado2.Value)); MessageBox.Show("El area es de " + area); }
private void button1_Click(object sender, EventArgs e) { Geometria g = new Geometria(); double area = g.areatriangulo(Convert.ToInt32(baseT.Value), Convert.ToInt32(alturaT.Value)); MessageBox.Show("El area es de " + area); }