Пример #1
0
        private void btn_Perimetro_Click(object sender, EventArgs e)
        {
            Cls_Operaciones perime = new Cls_Operaciones();

            perime.altura_t = Convert.ToInt32(txt_Altura.Text);
            perime.base_t   = Convert.ToInt32(txt_Base.Text);

            double perimetroe_m = perime.Calc_Perimetro();

            txt_Perimetro.Text = Convert.ToString(perimetroe_m);
        }
Пример #2
0
        private void btn_Area_Click(object sender, EventArgs e)
        {
            Cls_Operaciones areaop = new Cls_Operaciones();

            areaop.altura_t = Convert.ToInt32(txt_Altura.Text);
            areaop.base_t   = Convert.ToInt32(txt_Base.Text);

            double area_m = areaop.Calc_Area();

            txt_Area.Text = Convert.ToString(area_m);
        }