Exemple #1
0
        public string GetName()
        {
            if (ItemHelper.TryGetGroup(GroupId, out ItemGroup group))
            {
                return($"{group.Prefix}{Name}");
            }

            return(Name ?? Id);
        }
Exemple #2
0
        public string GetIcon()
        {
            if (Check.NotNull(Icon))
            {
                return(Icon);
            }

            if (ItemHelper.TryGetGroup(GroupId, out ItemGroup group))
            {
                return(group.Icon?.ToString() ?? "");
            }

            return(Icon ?? "");
        }
Exemple #3
0
        public string GetSummary()
        {
            if (Check.NotNull(Summary))
            {
                return(Summary);
            }

            if (ItemHelper.TryGetGroup(GroupId, out ItemGroup group))
            {
                return(group.Summary);
            }

            return(Summary);
        }