Пример #1
0
        public static ObservableCollection <LotViewModel> listeLot()
        {
            ObservableCollection <LotDAO>       lDAO = LotDAO.listeLot();
            ObservableCollection <LotViewModel> l    = new ObservableCollection <LotViewModel>();

            foreach (LotDAO element in lDAO)
            {
                LotViewModel p = new LotViewModel(element.idLotDAO, element.nomLotDAO, element.descriptionLotDAO, element.idEnchereLotDAO);
                l.Add(p);
            }
            return(l);
        }