示例#1
0
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            if (value is SkillSet set)
            {
                return(set.GetTitle(Locale));
            }

            if (value is SkillSummary summary)
            {
                return(SkillSet.GetTitle(new[] { summary }, Locale));
            }

            if (value is SkillSummaryViewModel model)
            {
                return(model.GetTitle(Locale));
            }

            return(null);
        }
示例#2
0
 public string GetTitle(string locale)
 {
     return(SkillSet.GetTitle(new[] { SkillSummary }, locale));
 }