// methods public void AddACanOf(string flavorName) { if (FlavorOps.HasFlavor(flavorName)) { AddACanOf(FlavorOps.ToFlavor(flavorName)); } }
public void RemoveACanOf(string flavorName) { if (FlavorOps.HasFlavor(flavorName)) { RemoveACanOf(FlavorOps.ToFlavor(flavorName)); } }
public bool StocksThisFlavor(string requestedFlavorName, ref Flavor selectedFlavor) { bool stocksThisFlavor = FlavorOps.HasFlavor(requestedFlavorName); if (stocksThisFlavor) { selectedFlavor = FlavorOps.ToFlavor(requestedFlavorName); } return(stocksThisFlavor); }
//Constructor(s) public Bin(string flavor) { Flavor flavorAsType = Flavor.REGULAR; if (FlavorOps.HasFlavor(flavor)) { FlavorOps.ToFlavor(flavor); } Flavor = flavorAsType; }