Exemplo n.º 1
0
        // these methods are used for generating
        // unique Ids to identify the EqualPoints "conflicts"
        // and to resolve them...
        // since the ranking and points are always recalculated,
        // we need this rather clumsy rationale...

        public static string IdRanking(SortedDictionary <string, bool> availRounds,
                                       RankingDataItem item)
        {
            string str = "";

            foreach (string key in availRounds.Keys)
            {
                if (availRounds[key])
                {
                    str += key + "|";
                }
            }
            return(str + "|" + item.Data);        // uses the ToString Method to identify it
        }
Exemplo n.º 2
0
 public static string IdRanking(List <KeyValuePair <string, bool> > availRounds,
                                RankingDataItem item)
 {
     return(IdRanking(RankingData.MakeDic(availRounds), item));
 }