void addStatistic(string text, int value, AchievementRank rank, IDictionary <AchievementRank, int> info)
        {
            var item = new StatisticItemViewModel();

            item.Name              = text.ToUpper();
            item.Value             = value.ToString();
            item.StatusIcon        = string.Format("/Images/Ranks/{0}.png", rank.ToString());
            item.StatusDescription = getRankDescription(rank, info);
            Items.Add(item);
        }
Exemple #2
0
        void addStatistic(string text, AchievementRank rank, IDictionary <AchievementRank, int> info)
        {
            var item = lvStatistics.Items.Add(text, rank.ToString());

            item.ToolTipText = AchievementsHelper.GetRankToolTip(rank, info);
        }