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

            foreach (LotDAO element in lDAO)
            {
                LotViewModel p = new LotViewModel(element.id_lot, element.id_vente_enchere, element.description);
                l.Add(p);
            }
            return(l);
        }