public FlightPlanificatorViewModel(CompanyViewModel company, HubViewModel hubViewModel)
 {
     Company = company;
     AirportSelectorViewModel = new AirportSelectorViewModel(company, hubViewModel);
     PassengerDemand          = new DemandClass();
     PlaneConfigurationList   = new PlaneConfigurationList(() => AirportSelectorViewModel.AvailablePlanes);
     ConfigurationResult      = new PlaneConfigurationListResult();
 }
        bool CanFlightPlanificationCommandExecute()
        {
            bool canExecute = AirportSelectorViewModel.SelectedFlightLine != null &&
                              AirportSelectorViewModel.SelectedFlightLine.DepartureAirport != null &&
                              AirportSelectorViewModel.SelectedFlightLine.ArrivalAirport != null &&
                              PlaneConfigurationList.Count > 0 &&
                              PlaneConfigurationList.All(config => config.Plane != null);

            return(canExecute);
        }