Exemplo n.º 1
0
        public BiddingSystemConvention AddSystemConvention(BiddingConvention biddingConvention)
        {
            if (BiddingSystemConventions == null)
            {
                BiddingSystemConventions = new List <BiddingSystemConvention>();
            }

            var existingConvention =
                BiddingSystemConventions.FirstOrDefault(bsc => bsc.BiddingConvention.Id == biddingConvention.Id);

            if (existingConvention != null)
            {
                return(existingConvention);
            }

            var biddingSystemConvention = new BiddingSystemConvention(this, biddingConvention);

            BiddingSystemConventions.Add(biddingSystemConvention);

            foreach (var sequence in biddingConvention.BiddingSequences)
            {
                AddBiddingSequence(sequence);
            }

            return(biddingSystemConvention);
        }
Exemplo n.º 2
0
        public BiddingSystemConvention AddSystemConvention(BiddingConvention biddingConvention)
        {
            if (BiddingSystemConventions == null)
                BiddingSystemConventions = new List<BiddingSystemConvention>();

            var existingConvention =
                BiddingSystemConventions.FirstOrDefault(bsc => bsc.BiddingConvention.Id == biddingConvention.Id);
            if (existingConvention != null)
                return existingConvention;

            var biddingSystemConvention = new BiddingSystemConvention(this, biddingConvention);
            BiddingSystemConventions.Add(biddingSystemConvention);

            foreach (var sequence in biddingConvention.BiddingSequences)
            {
                AddBiddingSequence(sequence);
            }

            return biddingSystemConvention;
        }