Пример #1
0
        public static QuotesCollection GetQuotes()
        {
            QuotesCollection quotes    = new QuotesCollection();
            DataTable        allQuotes = QuoteDAO.Instance.getAllQuotes();

            foreach (DataRow row in allQuotes.Rows)
            {
                Quote quote = new Quote(row);
                quotes.Add(quote);
            }
            return(quotes);
        }
Пример #2
0
 private QuotesDataSource()
 {
     this._quotesCollection = null;
 }