private void button4_Click(object sender, EventArgs e) //Toppings add Button { if (Box_toppings.SelectedIndex != -1 && order.pizzas.Count > 0) { order.pizzas[currentPizza].addTopping((string)Box_toppings.SelectedItem); updateOrderBox(); Box_beverages.Enabled = true; Box_toppings.ClearSelected(); } }
private void button8_Click(object sender, EventArgs e) //add pizza button { //currentPizza++; //button8.Enabled = false; Box_crust.Enabled = false; Box_beverages.Enabled = true; Box_toppings.Enabled = false; Box_size.Enabled = true; Box_crust.ClearSelected(); Box_beverages.ClearSelected(); Box_toppings.ClearSelected(); }