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 DataList = new ObservableCollection(Sushnosti.Books.ToList()); public ObservableCollection DataList2 = new ObservableCollection(Sushnosti.Shop.ToList()); //public ObservableCollection DataList3 = new ObservableCollection(Sushnosti.ReadersBooks.ToList()); //Вывод списка Books public ObservableCollection DataListGet { get { return DataList; } } public ObservableCollection DataListGet2 { get { return DataList2; } } //public ObservableCollection DataListGet3 //{ // get // { // return DataList2; // } //} //public ObservableCollection DataListGet4 //{ // get // { // return DataList3; // } //} } }