示例#1
0
        private void btnPentagono_Click(object sender, EventArgs e)
        {
            //CAreas a = new CAreas();
            decimal resulado = CAreas.Pentagono(NumPentagonop.Value, NumPentagonoa.Value);

            lblpentagono.Text = resulado + "";
        }
示例#2
0
        private void btnRomboide_Click(object sender, EventArgs e)
        {
            //CAreas a = new CAreas();
            decimal resulado = CAreas.Romboide(NumRomboideb.Value, NumRomboideh.Value);

            lblRomboide.Text = resulado + "";
        }
示例#3
0
        private void btnCirculo_Click(object sender, EventArgs e)
        {
            //CAreas a = new CAreas();
            decimal resulado = CAreas.Circulo(NumCirculoR.Value);

            lblCirculo.Text = resulado + "";
        }
示例#4
0
        private void btnTrapecio_Click(object sender, EventArgs e)
        {
            //CAreas a = new CAreas();
            decimal resulado = CAreas.Trapecio(NumTrapecioh.Value, NumTrapecioB.Value, Trapeciob.Value);

            lblTrapecio.Text = resulado + "";
        }
示例#5
0
        private void btnRectangulo_Click(object sender, EventArgs e)
        {
            //CAreas a = new CAreas();
            decimal resulado = CAreas.Rectanguo(NumRectanguloB.Value, NumRectanguloh.Value);

            lblRectangulo.Text = resulado + "";
        }
示例#6
0
        private void btnAreaCuadrado_Click(object sender, EventArgs e)
        {
            //CAreas a = new CAreas();
            decimal resulado = CAreas.Cuadrado(NumCuadrado.Value);

            lblCuadrado.Text = resulado + "";
        }