12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- using Books_Shop_Kopey.Model;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.ComponentModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Books_Shop_Kopey.VM
- {
- public class ViewModel : INotifyPropertyChanged
- {
- public event PropertyChangedEventHandler PropertyChanged;
- public static Books_Shop_KopeykinEntities Sushnosti { get; } = new Books_Shop_KopeykinEntities();
- public ObservableCollection<Books> DataList = new ObservableCollection<Books>(Sushnosti.Books.ToList());
- public ObservableCollection<Shop> DataList2 = new ObservableCollection<Shop>(Sushnosti.Shop.ToList());
- //public ObservableCollection<ReadersBooks> DataList3 = new ObservableCollection<ReadersBooks>(Sushnosti.ReadersBooks.ToList());
- //Вывод списка Books
- public ObservableCollection<Books> DataListGet
- {
- get
- {
- return DataList;
- }
- }
- public ObservableCollection<Shop> DataListGet2
- {
- get
- {
- return DataList2;
- }
- }
- //public ObservableCollection<Readers> DataListGet3
- //{
- // get
- // {
- // return DataList2;
- // }
- //}
- //public ObservableCollection<ReadersBooks> DataListGet4
- //{
- // get
- // {
- // return DataList3;
- // }
- //}
- }
- }
|