Exemplo n.º 1
0
        private void btnMaxPrice_Click(object sender, EventArgs e)
        {
            // To do: assignment 4
            int price = myGarage.getMaxPriceFerrari(myGarage.getAllCars().Count());

            if (price > -1)
            {
                MessageBox.Show("The maximum price of a Ferrari is " + price.ToString());
            }
            else
            {
                MessageBox.Show("Currently there are no Ferrari's for sale");
            }
        }
Exemplo n.º 2
0
 private void btnMaxPrice_Click(object sender, EventArgs e)
 {
     // To do: assignment 4
     MessageBox.Show(myGarage.getMaxPriceFerrari(myGarage.getAllCars().Count).ToString());
 }