示例#1
0
        public static string UiCaption(this StatisticalOperation operation)
        {
            if (operation == StatisticalOperation.UsersByFoundCaches)
            {
                return("Users ordered by number of found caches");
            }
            if (operation == StatisticalOperation.UsersByHiddenCaches)
            {
                return("Users ordered by number of hidden caches");
            }
            if (operation == StatisticalOperation.CachesByRating)
            {
                return("Best rated caches");
            }
            if (operation == StatisticalOperation.CachesByLogEntrNr)
            {
                return("Most logged caches");
            }

            if (operation == StatisticalOperation.CacheDistributionBySize)
            {
                return("Distribution of caches by size");
            }
            if (operation == StatisticalOperation.CacheDistributionByCacheDifficulty)
            {
                return("Distribution of caches by cache difficulty");
            }
            if (operation == StatisticalOperation.CacheDistributionByTerrainDifficulty)
            {
                return("Distribution of caches by terrain difficulty");
            }
            throw new ArgumentException();
        }
示例#2
0
 public StatisticVM(StatisticalOperation operation)
 {
     this.operation = operation;
 }