Exemple #1
0
        public ICriteria SetComment(string comment)
        {
            ICriteriaEvent criteriaEvent = new SetCommentEvent(comment);

            foreach (IShard shard in shards)
            {
                if (shard.GetCriteriaById(criteriaId) != null)
                {
                    shard.GetCriteriaById(criteriaId).SetComment(comment);
                }
                else
                {
                    shard.AddCriteriaEvent(criteriaId, criteriaEvent);
                }
            }
            return(this);
        }
Exemple #2
0
        public ICriteria SetComment(string comment)
        {
            ICriteriaEvent criteriaEvent = new SetCommentEvent(comment);

            foreach (IShard shard in shards)
            {
                if (shardToCriteriaMap[shard] != null)
                {
                    shardToCriteriaMap[shard].SetComment(comment);
                }
                else
                {
                    shardToEventListMap[shard].Add(criteriaEvent);
                }
            }
            return(this);
        }