Пример #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            TParallelepiped bp = new TParallelepiped(Convert.ToDouble(textBox1.Text), Convert.ToDouble(textBox2.Text),
                                                     Convert.ToDouble(textBox3.Text), Convert.ToDouble(textBox4.Text), Convert.ToInt32(textBox9.Text));

            textBox10.Text = bp.areaParallelepiped().ToString();
        }
Пример #2
0
        private void button7_Click(object sender, EventArgs e)
        {
            TBall bl = new TBall(Convert.ToDouble(textBox1.Text), Convert.ToDouble(textBox2.Text),
                                 Convert.ToDouble(textBox3.Text), Convert.ToDouble(textBox4.Text), Convert.ToInt32(textBox9.Text));
            TParallelepiped bp = new TParallelepiped(Convert.ToDouble(textBox1.Text), Convert.ToDouble(textBox2.Text),
                                                     Convert.ToDouble(textBox3.Text), Convert.ToDouble(textBox4.Text), Convert.ToInt32(textBox9.Text));

            textBox12.Text = (bl.areaBall() + bp.areaParallelepiped()).ToString();
        }