Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public HomeViewModel(IFrameNavigationService navigationService)
        {
            databaseContext    = new MultiplexTrackDbContext();
            _navigationService = navigationService;

            //_toggleButtonHome = true;
        }
Exemplo n.º 3
0
        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;
 }
Exemplo n.º 5
0
 public MovieShowTimeModel(IFrameNavigationService navigationService)
 {
     databaseContext    = new MultiplexTrackDbContext();
     _navigationService = navigationService;
 }