Exemplo n.º 1
0
        public void AddBusinessBlurb(string businessKey, bool chained)
        {
            BusinessInfo businessInfo = new BusinessInfo(businessKey);

            businessInfo.Get(false);

            string text    = businessInfo.Names[0].Value;
            string tooltip = Localization.GetString("HEADING_BUSINESS");
            string url     = root;

            if (BreadCrumbType.Edit == type)
            {
                url += "/edit/editbusiness.aspx?refreshExplorer=&key=";
            }
            else
            {
                url += "/details/businessdetail.aspx?search=" + Request["search"] + "&key=";
            }

            url += businessKey + "&frames=" + frames.ToString().ToLower();

            AddContainerBlurb(true);

            if (chained)
            {
                AddBlurb(text, url, null, tooltip, true);
            }
            else
            {
                AddBlurb(text, null, "business.gif", tooltip, false);
            }
        }