void addStatistic(List <StatisticItemViewModel> items, string text, AchievementRank rank, IDictionary <AchievementRank, int> info) { StatisticItemViewModel item = new StatisticItemViewModel(text, AchievementsHelper.GetRankToolTip(rank, info), new Uri(AchievementsHelper.GetIconForRank(rank))); items.Add(item); }
void addStatistic(string text, AchievementRank rank, IDictionary <AchievementRank, int> info) { var item = lvStatistics.Items.Add(text, rank.ToString()); item.ToolTipText = AchievementsHelper.GetRankToolTip(rank, info); }