protected virtual string ToNiceString(Data.Bookmark.IBookmarkable item, bool html = true, string delimiter = " - ", params string[] otherparams) { var c = ""; if (html) { c = string.Format("<a href='{0}'>{1}</a>{2}", item.GetUrl(false), item.BookmarkName(), delimiter); } else { c = string.Format("{0}{1}", item.BookmarkName(), delimiter); } return(c + BasicStatPerYear.Summary.ToNiceString(item, html)); }
public string ToNiceString(Data.Bookmark.IBookmarkable item, bool html = true, string customUrl = null, bool twoLines = false) { if (html) { var s = "<a href='" + (customUrl ?? (item?.GetUrl(false) ?? "")) + "'>" + Devmasters.Lang.Plural.Get((int)this.Pocet, "{0} smlouva;{0} smlouvy;{0} smluv") + "</a>" + (twoLines ? "<br />" : " za ") + "celkem " + HlidacStatu.Lib.Data.Smlouva.NicePrice(this.CelkemCena, html: true, shortFormat: true); return(s); } else { return(Devmasters.Lang.Plural.Get((int)this.Pocet, "{0} smlouva;{0} smlouvy;{0} smluv") + " za celkem " + HlidacStatu.Lib.Data.Smlouva.NicePrice(this.CelkemCena, html: false, shortFormat: true)); } }