public MainWindow() { InitializeComponent(); context = new ResourseContext(); db = new RepositoryResourseEF(context); db.db.Resourses.Load(); getRes = new GetResourse(); // context.Resourses.Load(); // ResourseGrid.ItemsSource = context.Resourses.Local.ToBindingList(); ResourseGrid.ItemsSource = getRes.ReturnResourse().ToList(); this.Closing += MainWindow_Closing; }
public Resourses() { InitializeComponent(); context = new Context(); // db = new RepositoryResourseEF(context); db = new RepositoryResourseEF(); db.db.Resourses.Load(); getRes = new GetResourse(); // ResourseGrid.ItemsSource = context.Resourses.Local.ToBindingList(); // ResourseGrid.ItemsSource = db.db.Resourses.Local.ToBindingList(); UPDATE(); this.Closing += MainWindow_Closing; }
public GetResourse() { resourse = new RepositoryResourseEF(); }
public AddResourse() { resourse = new RepositoryResourseEF(); }