Example #1
0
 // methods
 public void AddACanOf(string flavorName)
 {
     if (FlavorOps.HasFlavor(flavorName))
     {
         AddACanOf(FlavorOps.ToFlavor(flavorName));
     }
 }
Example #2
0
 public void RemoveACanOf(string flavorName)
 {
     if (FlavorOps.HasFlavor(flavorName))
     {
         RemoveACanOf(FlavorOps.ToFlavor(flavorName));
     }
 }
Example #3
0
        public bool StocksThisFlavor(string requestedFlavorName, ref Flavor selectedFlavor)
        {
            bool stocksThisFlavor = FlavorOps.HasFlavor(requestedFlavorName);

            if (stocksThisFlavor)
            {
                selectedFlavor = FlavorOps.ToFlavor(requestedFlavorName);
            }
            return(stocksThisFlavor);
        }
Example #4
0
        //Constructor(s)
        public Bin(string flavor)
        {
            Flavor flavorAsType = Flavor.REGULAR;

            if (FlavorOps.HasFlavor(flavor))
            {
                FlavorOps.ToFlavor(flavor);
            }
            Flavor = flavorAsType;
        }