Example #1
0
        private void button7_Click(object sender, EventArgs e)
        {
            TTriangle t1 = new TTriangle(Convert.ToDouble(textBox1.Text), Convert.ToDouble(textBox2.Text), Convert.ToDouble(textBox3.Text));
            double    t2 = Convert.ToDouble(textBox9.Text);
            TTriangle s  = t1 * t2;

            textBox10.Text = s.seedsTriangle().ToString();
        }
Example #2
0
        private void button6_Click(object sender, EventArgs e)
        {
            Random    rnd = new Random();
            TTriangle t1  = new TTriangle(Convert.ToDouble(textBox1.Text), Convert.ToDouble(textBox2.Text), Convert.ToDouble(textBox3.Text));
            TTriangle t2  = new TTriangle(Convert.ToDouble(rnd.Next(1, 10)), Convert.ToDouble(rnd.Next(1, 10)), Convert.ToDouble(rnd.Next(1, 10)));
            TTriangle s   = t1 - t2;

            textBox8.Text = s.seedsTriangle().ToString();
        }
Example #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            TTriangle trg = new TTriangle(Convert.ToDouble(textBox1.Text), Convert.ToDouble(textBox2.Text), Convert.ToDouble(textBox3.Text));

            listBox1.Items.Add(trg.seedsTriangle());
        }