Beispiel #1
0
        public void RemoveBetDomain(BetDomainLn betDomain)
        {
            Debug.Assert(betDomain.Match != null);

            betDomain.Match.BetDomains.Remove(betDomain);

            var lOdds = betDomain.Odds.Clone();

            foreach (var bodd in lOdds)
            {
                // Remove Odds
                m_diAll.Odds.Remove(bodd.OutcomeId);
                m_diObjectsToRemove.SafelyAddObject(bodd);

                //m_logger.DebugFormat("Removed from Line {0}", bodd);
            }

            // Remove BetDomain
            m_diAll.BetDomains.Remove(betDomain.BetDomainId);
            m_diObjectsToRemove.SafelyAddObject(betDomain);

            //m_logger.DebugFormat("Removed from Line {0}", betDomain);
        }
Beispiel #2
0
 public OddList(BetDomainLn bdmnOwner)
     : base()
 {
     Debug.Assert(bdmnOwner != null);
     m_betDomain = bdmnOwner;
 }