private void btn_RS_addMushrooms_Click(object sender, EventArgs e) { if (RS_toppings.Contains(Pizza.Topping.Mushrooms)) { RS_toppings.RemoveAt(RS_toppings.IndexOf(Pizza.Topping.Mushrooms)); } else { RS_toppings.Add(Pizza.Topping.Mushrooms); } ButtonAnimation.ButtonOnOff(this, btn_RS_addMushrooms); }
private void btn_RS_addSausage_Click(object sender, EventArgs e) { if (RS_toppings.Contains(Pizza.Topping.ItalianSausage)) { RS_toppings.RemoveAt(RS_toppings.IndexOf(Pizza.Topping.ItalianSausage)); } else { RS_toppings.Add(Pizza.Topping.ItalianSausage); } ButtonAnimation.ButtonOnOff(this, btn_RS_addSausage); }