imBMW.Features.Menu.MenuBase.TextWithIcon C# (CSharp) Method

TextWithIcon() protected method

protected TextWithIcon ( char icon, string text = null ) : string
icon char
text string
return string
        protected string TextWithIcon(char icon, string text = null)
        {
            if (StringHelpers.IsNullOrEmpty(text))
            {
                return icon + "";
            }
            if (text.Length + 1 < StatusTextMaxlen)
            {
                return icon + " " + text;
            }
            return icon + text;
        }

Same methods

MenuBase::TextWithIcon ( string icon, string text = null ) : string