Service.cs 673 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Windows.Controls;
  7. using MyMoviesWPF.Models;
  8. namespace MyMoviesWPF.MVVM.ViewModel.Core
  9. {
  10. public static class Service
  11. {
  12. public static MyMoviesDBContext db = new MyMoviesDBContext();
  13. public static User LoggedUser = new User();
  14. public static ObservableCollection<Movie> CartMoviesCollection { get; set; } = new ObservableCollection<Movie>();
  15. public static MainViewModel MainViewModel { get; set; }
  16. public static Movie movie { get; set; }
  17. public static Page CurrentPage;
  18. }
  19. }