Example #1
0
        }//initCategoryCollections

        public void Dispose(bool disposing)
        {     // Disposing class variables
            if (disposing)
            { // Managed code
                Resolver.Release(securityRepository);
                m_objErrorHandler = null;
                m_colFullCollection.Clear();
                m_colSecurities.Clear();
                m_colActiveSecurities.Clear();
                m_colBenchmarks.Clear();
                m_colSectors.Clear();
                m_colSecTypes.Clear();
                m_colMarkets.Clear();
            }
            isDisposed = true;
        }//Dispose
Example #2
0
        }//resetSecuritiesCollection

        private void setListOfSecuritiesByRisk()
        { // Creates list of securities by a given risk level (defined in cProperties)
            m_colSecuritiesByRisk.Clear();
            for (int iSecs = 0; iSecs < m_colSecurities.Count; iSecs++)
            {
                if (m_colSecurities[iSecs].StdYield <= m_objPortfolio.Details.PreferedRisk.stDevUpperBound)
                {
                    m_colSecuritiesByRisk.Add(m_colSecurities[iSecs]);
                }
            }
        }//setListOfSecuritiesByRisk
Example #3
0
        }//filterSecuritiesForNewPortfolio

        #endregion Filter Methods

        #region General

        public void setDisabledSecsToActive()
        { // Sets disabled securities back to active state
            // Loop through list of disabled securities and setting them to active state
            for (int iSecs = 0; iSecs < m_colDisabledSecurities.Count; iSecs++)
            {
                m_colDisabledSecurities[iSecs].setSecurityActivity(true);
            }

            // Clear DisabledSecs collection
            m_colDisabledSecurities.Clear();

            // Clear DisabledSecs collection
            m_colActiveSecurities = m_colFullCollection.getListOfActiveSecs(); // Creates active securities list
        }//setDisabledSecsToActive
Example #4
0
        }                                        //Count

        public virtual void Clear()
        {
            m_colSecurities.Clear();
        }                           //Clear