public MovieManagerWindow(MovieDatabase movieDatabase)
        {
            this.movieDatabase = movieDatabase;

            moviesViewModel = new MoviesViewModel(movieDatabase);

            DataContext = moviesViewModel;

            InitializeComponent();
        }
        public SelectMovieDialog(MovieDatabase movieDatabase)
        {
            Topmost = true;

            IEnumerable<Movie> rentableMovies = movieDatabase.Movies.Where(m => m.Available);

            moviesViewModel = new MoviesViewModel();

            foreach (Movie movie in rentableMovies)
            {
                moviesViewModel.Movies.Add(movie);
            }

            DataContext = moviesViewModel;

            InitializeComponent();
        }