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;
        //    }
        //}
    }
}
