Esempio n. 1
0
        /// <summary>
        /// Gets the style type name
        /// </summary>
        string GetStyleTypeText(BjcpStyle style)
        {
            // May be “Lager”, “Ale”, “Mead”, “Wheat”, “Mixed” or “Cider”.  Defines the type of beverage associated with this category.

            if (style.CategoryName.ToLower().IndexOf("lager") > -1 || style.CategoryName.ToLower().IndexOf("pilsner") > -1)
            {
                return("Lager");
            }

            if (style.CategoryName.ToLower().IndexOf("wheat") > -1)
            {
                return("Wheat");
            }

            if (style.CategoryName.ToLower().IndexOf("cider") > -1)
            {
                return("Cider");
            }

            if (style.CategoryName.ToLower().IndexOf("hybrid") > -1)
            {
                return("Mixed");
            }

            return("Ale");
        }
		/// <summary>
		/// Gets the style type name
		/// </summary>
		string GetStyleTypeText(BjcpStyle style)
		{
			// May be “Lager”, “Ale”, “Mead”, “Wheat”, “Mixed” or “Cider”.  Defines the type of beverage associated with this category.

			if (style.CategoryName.ToLower().IndexOf("lager") > -1 || style.CategoryName.ToLower().IndexOf("pilsner") > -1)
			{
				return "Lager";
			}

			if (style.CategoryName.ToLower().IndexOf("wheat") > -1)
			{
				return "Wheat";
			}

			if (style.CategoryName.ToLower().IndexOf("cider") > -1)
			{
				return "Cider";
			}

			if (style.CategoryName.ToLower().IndexOf("hybrid") > -1)
			{
				return "Mixed";
			}

			return "Ale";
		}