Beispiel #1
0
        public string Badge(string subject, string status, string statusColor, float subjectWidth, float statusWidth, enBadgeStyle style = enBadgeStyle.Flat)
        {
            string template   = Templates.BadgeStyle(style);
            float  totalWidth = subjectWidth + statusWidth;

            var result = template.zFormat(totalWidth, subjectWidth, statusWidth, subjectWidth / 2 + 1, subjectWidth + statusWidth / 2 - 1, subject, status, statusColor);

            return(result);
        }