public MoviesViewModel(IFrameNavigationService navigationService) { _databaseContext = new MultiplexTrackDbContext(); _navigationService = navigationService; _categories = new ObservableCollection <Category>(); _selectedCategories = new ObservableCollection <Category>(); _loadPoster = new RelayCommand(() => { OpenFileDialog op = new OpenFileDialog(); op.Title = "Select a poster for movie"; op.Filter = "All supported graphics|*.jpg;*.jpeg;*.png|" + "JPEG (*.jpg;*.jpeg)|*.jpg;*.jpeg|" + "Portable Network Graphic (*.png)|*.png"; op.ValidateNames = true; op.Multiselect = false; if (op.ShowDialog() == true) { FileName = op.FileName; } }); _saveMovie = new RelayCommand(ExecuteSaveMovie); }
public HomeViewModel(IFrameNavigationService navigationService) { databaseContext = new MultiplexTrackDbContext(); _navigationService = navigationService; //_toggleButtonHome = true; }
public UserLoginViewModel(IFrameNavigationService navigationService) { databaseContext = new MultiplexTrackDbContext(); _navigationService = navigationService; ClearCommand = new RelayCommand(() => Clear()); CancelCommand = new RelayCommand(() => Close()); }
public UserRegisterViewModel(IFrameNavigationService navigationService) { databaseContext = new MultiplexTrackDbContext(); _navigationService = navigationService; }
public MovieShowTimeModel(IFrameNavigationService navigationService) { databaseContext = new MultiplexTrackDbContext(); _navigationService = navigationService; }