Esempio 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);
        }
Esempio 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;
        }