public AddRentalWindow(RentalsVM rentalsVM, ClientVM clientVM, MoviesVM moviesVM, DBA.Rental rental)
        {
            InitializeComponent();

            this._rentalsVM = rentalsVM;
            this._clientVM = clientVM;
            this._moviesVM = moviesVM;
            this._rental = rental;

            cboxClient.ItemsSource = _clientVM.getClients();
            listBoxMovies.ItemsSource = _moviesVM.getMovies();

            InitializeComponent();
            _rental = rental;
            this.DataContext = _rental;
        }
        public AddRentalWindow(RentalsVM rentalVM, ClientVM clientVM, MoviesVM moviesVM)
        {
            InitializeComponent();
            _rental = new DBA.Rental();
            this.DataContext = _rental;

            _rentalsVM = rentalVM;
            _clientVM = clientVM;
            _moviesVM = moviesVM;

            cboxClient.ItemsSource = _clientVM.getClients();
            listBoxMovies.ItemsSource = _moviesVM.getMovies();

            _rental.StartDate = DateTime.Now;
            _rental.EndDate = DateTime.Now.AddDays(7d);
        }