コード例 #1
0
        public static DocumentListViewModel Get(DocumentoList sourceList)
        {
            DocumentListViewModel list = new DocumentListViewModel();

            foreach (DocumentoInfo item in sourceList)
            {
                list.Add(DocumentViewModel.New(item));
            }

            return(list);
        }
コード例 #2
0
        public static DocumentListViewModel Get(Documentos sourceList, IAgenteHipatia agent)
        {
            DocumentListViewModel list = new DocumentListViewModel();

            foreach (Documento item in sourceList)
            {
                list.Add(DocumentViewModel.New(item, agent));
            }

            return(list);
        }
コード例 #3
0
        public static DocumentListViewModel Get(IEnumerable <DocumentViewModel> source)
        {
            DocumentListViewModel list = new DocumentListViewModel();

            foreach (DocumentViewModel item in source)
            {
                list.Add(item);
            }

            return(list);
        }