Esempio n. 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            Jeep BMWX7 = new Jeep("BMW X7", 227, 0.8, 2445, 249, 7.6, 80, 4, 0, 7020000, 42);

            if (checkBox6.CheckState == CheckState.Checked)
            {
                BMWX7.price = BMWX7.price + 221400;
            }
            if (checkBox7.CheckState == CheckState.Checked)
            {
                BMWX7.price = BMWX7.price + 382800;
            }
            if (checkBox8.CheckState == CheckState.Checked)
            {
                BMWX7.price = BMWX7.price + 425600;
            }
            if (checkBox9.CheckState == CheckState.Checked)
            {
                BMWX7.price = BMWX7.price + 68100;
            }
            if (checkBox10.CheckState == CheckState.Checked)
            {
                BMWX7.price = BMWX7.price + 58700;
            }
            textBox2.Text = Convert.ToString(BMWX7.price);
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Jeep BMWX6 = new Jeep("BMW X6", 230, 0.8, 2185, 249, 7.4, 83, 4, 1, 6350000, 38);

            BMWX6.Prohodimost();
        }
Esempio n. 3
0
        private void button4_Click(object sender, EventArgs e)
        {
            Jeep BMWX6 = new Jeep("BMW X6", 230, 0.8, 2185, 249, 7.4, 83, 4, 1, 6350000, 38);

            MessageBox.Show(BMWX6.Print());
        }
Esempio n. 4
0
        private void button3_Click(object sender, EventArgs e)
        {
            Jeep BMWX7 = new Jeep("BMW X7", 227, 0.8, 2445, 249, 7.6, 80, 4, 1, 7020000, 42);

            BMWX7.Prohodimost();
        }
Esempio n. 5
0
        private void button2_Click(object sender, EventArgs e)
        {
            Jeep BMWX5 = new Jeep("BMW X5", 222, 0.7, 2075, 231, 6.9, 80, 4, 0, 5400000, 34);

            BMWX5.Prohodimost();
        }
Esempio n. 6
0
        private void button6_Click(object sender, EventArgs e)
        {
            Jeep BMWX7 = new Jeep("BMW X7", 227, 0.8, 2445, 249, 7.6, 80, 4, 1, 7020000, 42);

            MessageBox.Show(BMWX7.Print());
        }
Esempio n. 7
0
        private void button5_Click(object sender, EventArgs e)
        {
            Jeep BMWX5 = new Jeep("BMW X5", 222, 0.7, 2075, 231, 6.9, 80, 4, 0, 5400000, 34);

            MessageBox.Show(BMWX5.Print());
        }