private void LoadAvailableCars(DateTime from, DateTime until, double hourRange)
        {
            AvailableCarsTable.Rows.Clear();
            RentalManager manager       = new RentalManager(new UnitOfWork(new RentalContext()));
            List <Car>    availableCars = manager.GetAvailableCars(from, until, hourRange);

            foreach (Car car in reservationCars)
            {
                if (!availableCars.Where(c => c.ID == car.ID).Any())
                {
                    AddTableRow(car.ID, car.Brand, car.Type, car.Color, (car.PriceFirst > 0) ? string.Format("€{0:0.00}", car.PriceFirst) : "N/A", (car.PriceFirst > 0) ? string.Format("€{0:0.00}", car.PriceFirst * 0.65) : "N/A", (car.PriceNight > 0) ? string.Format("€{0:0.00}", car.PriceNight) : "N/A", (car.PriceWedding > 0) ? string.Format("€{0:0.00}", car.PriceWedding) : "N/A", (car.PriceWellness > 0) ? string.Format("€{0:0.00}", car.PriceWellness) : "N/A");
                }
            }
            foreach (Car car in availableCars)
            {
                AddTableRow(car.ID, car.Brand, car.Type, car.Color, (car.PriceFirst > 0) ? string.Format("€{0:0.00}", car.PriceFirst) : "N/A", (car.PriceFirst > 0) ? string.Format("€{0:0.00}", car.PriceFirst * 0.65) : "N/A", (car.PriceNight > 0) ? string.Format("€{0:0.00}", car.PriceNight) : "N/A", (car.PriceWedding > 0) ? string.Format("€{0:0.00}", car.PriceWedding) : "N/A", (car.PriceWellness > 0) ? string.Format("€{0:0.00}", car.PriceWellness) : "N/A");
            }
            foreach (Car car in reservationCars)
            {
                int    index = GetDataGridIndex(car);
                object item  = CarTable.Items[index];
                CarTable.SelectedItems.Add(item);
                CarTable.ScrollIntoView(item);
            }
        }
        private void LoadAvailableCars(DateTime from, DateTime until, double hourRange)
        {
            AvailableCarsTable.Rows.Clear();
            RentalManager manager = new RentalManager(new UnitOfWork(new RentalContext()));

            foreach (Car car in manager.GetAvailableCars(from, until, hourRange))
            {
                AddTableRow(car.ID, car.Brand, car.Type, car.Color, car.PriceFirst);
            }
        }