Esempio n. 1
0
        /// <summary>
        /// Returns a CardsCollection collection for cards for view of name
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public CardsCollection GetView(string name)
        {
            var cards = new CardsCollection(MingleProject, _model);

            MingleProject.GetView(name).ToList().ForEach(c => cards.Add(new Card(c, _model)));
            return(cards);
        }
Esempio n. 2
0
        /// <summary>
        /// Wraps MingleProject.GetCards(filters)
        /// </summary>
        /// <param name="filters"></param>
        /// <returns></returns>
        public CardsCollection GetCards(Collection <string> filters)
        {
            var cards = new CardsCollection(_project, _model);

            _project.GetCards(filters).ToList().ForEach(c => cards.Add(new Card(c, _model)));
            return(cards);
        }