Пример #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            SportCar BMWM8 = new SportCar("BMW M8 Coupe", 305, 0.75, 1960, 600, 14.6, 68, 4, 11800000, 0.128, 3.3);

            if (checkBox11.CheckState == CheckState.Checked)
            {
                BMWM8.price = BMWM8.price + 173800;
            }
            if (checkBox12.CheckState == CheckState.Checked)
            {
                BMWM8.price = BMWM8.price + 112700;
            }
            if (checkBox13.CheckState == CheckState.Checked)
            {
                BMWM8.price = BMWM8.price + 826600;
            }
            if (checkBox14.CheckState == CheckState.Checked)
            {
                BMWM8.price = BMWM8.price + 418800;
            }
            if (checkBox15.CheckState == CheckState.Checked)
            {
                BMWM8.price = BMWM8.price + 122100;
            }
            textBox3.Text = Convert.ToString(BMWM8.price);
        }
Пример #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            SportCar BMWM8 = new SportCar("BMW M8 Coupe", 305, 0.75, 1960, 600, 14.6, 68, 4, 11800000, 0.128, 3.3);

            MessageBox.Show(BMWM8.Print());
        }
Пример #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            SportCar BMWM8 = new SportCar("BMW M8 Coupe", 305, 0.75, 1960, 600, 14.6, 68, 4, 11800000, 0.128, 3.3);

            BMWM8.Gonka();
        }