protected string getImage(ProductAvailabilityType prodAvail) { if (prodAvail == ProductAvailabilityType.Unavailable) { return("/Content/Global/Products/Img/circle_red.gif"); } else if (prodAvail == ProductAvailabilityType.AllowBackOrder) { return("/Content/Global/Products/Img/circle_orange.gif"); } else { return("/Content/Global/Products/Img/circle_green.gif"); } }
/// <summary> /// The get enabled. /// </summary> /// <param name="availType"> /// The avail type. /// </param> /// <returns> /// The get enabled. /// </returns> protected bool getEnabled(ProductAvailabilityType availType) { return(true); }