Question: please provide full code for this private readonly Reservationilanager Reservationfanager; Hendregion jegion Properties II/ 1/1 Holds flight view models for listview. 111 summary> 4 references

 please provide full code for this private readonly Reservationilanager Reservationfanager; Hendregion

jegion Properties II/ 1/1 Holds flight view models for listview. 111 summary>

4 references public ObservableCollectionsFlightViewHodel> FlightViewHodeld { get; } 111 11/ Holds airport

view models for combo boxes. 111 summary> 1 reference public AirportViewhodels AirportViewhodels

\{ get; } 111 1// Holds reservation view models for listview. 111

summary > 4 references public ObservableCollectionReservationViewModel> ReservationViewModels { get; } 11/ 1/1

Holds week day view models for combo boxes. 111 summary > 1

reference public WeekDayViewilodels WeekdayViewModels { get; } \#itiendregion \#region Constructor 111 1/1

please provide full code for this

private readonly Reservationilanager Reservationfanager; Hendregion jegion Properties II/ 1/1 Holds flight view models for listview. 111 summary> 4 references public ObservableCollectionsFlightViewHodel> FlightViewHodeld { get; } 111 11/ Holds airport view models for combo boxes. 111 summary> 1 reference public AirportViewhodels AirportViewhodels \{ get; } 111 1// Holds reservation view models for listview. 111 summary > 4 references public ObservableCollectionReservationViewModel> ReservationViewModels { get; } 11/ 1/1 Holds week day view models for combo boxes. 111 summary > 1 reference public WeekDayViewilodels WeekdayViewModels { get; } \#itiendregion \#region Constructor 111 1/1 Constructors MainWindow 111 summary > 0 references public Mainwindow( \{ Initialize(omponent(); DataContext = this; Fendregion *region Constructor 1/1 1/1 Constructors MainWindow 11 summary> 0 references public MainWindow() i InitializeComponent(0; DataContext = this; Airlinelanager = new MyAirlineManager( Airporthanager = new MyAirportManager0; Flightianager = new MyFLightManager() Reservationflanager = new MyReservationlianagero; FlightViewhodels = new ObservableCollectionsFlightViewhodel> ); ReservationViewHodels = new ObservableCollection(); AisportViewhodels = new AirportViewhodels (Aisporthanager. Airports); WeekdayViewhodels = new WeekDayViewhodeLs(); PopulateFlights(null, null, null); PopulateReservations(null, null, null); \#endregion 111 // Performs a search when a user clicks the 'Search' button in the Flight tab. /1 summary > 1// param > 1/1 =nen> param > 0 references private void FlightsSearchButton_Click(object sender, RoutedEventArgs e) \{ II Gets the from/to airport codes and weekday that the user selected eferences sparan name=" em> param> ivate void Flightssearehintton_Click(object sender, RoutedEventArgs e) I/ Gets the from/to airport codes and weekday that the user selected I/ Get from airport code that user selected II Get to airport code that user selected // Get the weekday the user selected (as a string) I I/ Pass from, to, and weekDay to SearchFlights method 111 1// Populates inputs for reserving flight 1/1 summary> 1 l/ Selected FlightviewModel instance 1 reference private void PopulateFlightinputs(FlightViewModel? fvw) if (fvw I= null) I/ Set Flight tab "Flight" input value to selected flight code var airline = AirlineManager. FindAirline(fvw. Flight.AirlineCode); I/ Set Flight tab "Airline" input value to selected airline name /I Set Flight tab "Day" input to selected weekday II Set Flight tab "Time" input to selected time II Create costPerSeatFormatted variable I/ Assign costperseat in currency format to costPerSeatFormatted I/ Set Flight tab "Cost" input to costPerSeatFormatted 111 III Tries to make a reservation when the user clicks the 'Reserve' button 111 summary> 1/1 > param > 1/1 nes> param > 0 references private void FlightsReserveButton_Click(object sender, RoutedEventArgs e) f Il fuw has information on selected flight FlightViewHodel? fvw= FLightsListView.SelectedIten as FLightViewHodel; varflight=fvw?.Flight; if(flight1=nutz) I/ Get Flight tab "Name" input value // Get Flight tab "Citizenship" input value I/ Call ReserveFlight with flight, name, and citizenship I/ Set Flight tab "Name" input value to empty string 111 I/I Search reservations when user clicks the 'Search' button. 111 summary > I/I > param > o references private void ReservationsSearchButton_Click(object sender, RoutedEventArgs e) i 1/ Get reservation code search input value I/I Search reservations when user clicks the 'Search' button. 11/ summary> 1/1 > param > II/ > param > 0 references private void ReservationsSearchButton_Click(object sender, RoutedEventArgs e) \{ // Get reservation code search input value // Get airline code search input value II Get name search input value I/ Call SearchReservations with reservation code, airline code, and name 111 1/1 Populates reservation inputs 11/ summary> 1/1 xVm ">ReservationViewModel instance / param > 1 reference private void PopulateReserveInputs(ReservationViewModel? rvm) if (rvm I= null) I/ Set "Code" input value to reservation code // Set "Flight" input value to flight code var airline = AirlineManager. FindAirline(rvm. Reservation, Flight. Airline(ode) If Set "Airline" input value to airline name (not code) If Declare variable costperSeatFormatted and assign the cost per seat in currency I/ Set "Cost" input value to costPerSeatFormatted 111 I/I Updates a reservation when user clicks the 'Update' button 111 summary> 11/ > param > 1/1 em> param> 0 references private void ReservationsUpdateButton_CLLek(object sender, RoutedEventArgs e) I/ Get reservation code input value I/ Get "Name" input value I/ Get "Citizenship" input value I/ Create bool variable called "isReservationActive" I/ Check if "Status" combobo has "Active" selected I/ Assign true to "isReservationActive" 1/ Otherwise I/ Assign false to "isReservationActive" I/ Call UpdateReservation method with code, name, citizenship, and isActive Provided Methods 0 references private void Button_Click(object sender, RoutedEventArgs e) \{ private readonly Reservationilanager Reservationfanager; Hendregion jegion Properties II/ 1/1 Holds flight view models for listview. 111 summary> 4 references public ObservableCollectionsFlightViewHodel> FlightViewHodeld { get; } 111 11/ Holds airport view models for combo boxes. 111 summary> 1 reference public AirportViewhodels AirportViewhodels \{ get; } 111 1// Holds reservation view models for listview. 111 summary > 4 references public ObservableCollectionReservationViewModel> ReservationViewModels { get; } 11/ 1/1 Holds week day view models for combo boxes. 111 summary > 1 reference public WeekDayViewilodels WeekdayViewModels { get; } \#itiendregion \#region Constructor 111 1/1 Constructors MainWindow 111 summary > 0 references public Mainwindow( \{ Initialize(omponent(); DataContext = this; Fendregion *region Constructor 1/1 1/1 Constructors MainWindow 11 summary> 0 references public MainWindow() i InitializeComponent(0; DataContext = this; Airlinelanager = new MyAirlineManager( Airporthanager = new MyAirportManager0; Flightianager = new MyFLightManager() Reservationflanager = new MyReservationlianagero; FlightViewhodels = new ObservableCollectionsFlightViewhodel> ); ReservationViewHodels = new ObservableCollection(); AisportViewhodels = new AirportViewhodels (Aisporthanager. Airports); WeekdayViewhodels = new WeekDayViewhodeLs(); PopulateFlights(null, null, null); PopulateReservations(null, null, null); \#endregion 111 // Performs a search when a user clicks the 'Search' button in the Flight tab. /1 summary > 1// param > 1/1 =nen> param > 0 references private void FlightsSearchButton_Click(object sender, RoutedEventArgs e) \{ II Gets the from/to airport codes and weekday that the user selected eferences sparan name=" em> param> ivate void Flightssearehintton_Click(object sender, RoutedEventArgs e) I/ Gets the from/to airport codes and weekday that the user selected I/ Get from airport code that user selected II Get to airport code that user selected // Get the weekday the user selected (as a string) I I/ Pass from, to, and weekDay to SearchFlights method 111 1// Populates inputs for reserving flight 1/1 summary> 1 l/ Selected FlightviewModel instance 1 reference private void PopulateFlightinputs(FlightViewModel? fvw) if (fvw I= null) I/ Set Flight tab "Flight" input value to selected flight code var airline = AirlineManager. FindAirline(fvw. Flight.AirlineCode); I/ Set Flight tab "Airline" input value to selected airline name /I Set Flight tab "Day" input to selected weekday II Set Flight tab "Time" input to selected time II Create costPerSeatFormatted variable I/ Assign costperseat in currency format to costPerSeatFormatted I/ Set Flight tab "Cost" input to costPerSeatFormatted 111 III Tries to make a reservation when the user clicks the 'Reserve' button 111 summary> 1/1 > param > 1/1 nes> param > 0 references private void FlightsReserveButton_Click(object sender, RoutedEventArgs e) f Il fuw has information on selected flight FlightViewHodel? fvw= FLightsListView.SelectedIten as FLightViewHodel; varflight=fvw?.Flight; if(flight1=nutz) I/ Get Flight tab "Name" input value // Get Flight tab "Citizenship" input value I/ Call ReserveFlight with flight, name, and citizenship I/ Set Flight tab "Name" input value to empty string 111 I/I Search reservations when user clicks the 'Search' button. 111 summary > I/I > param > o references private void ReservationsSearchButton_Click(object sender, RoutedEventArgs e) i 1/ Get reservation code search input value I/I Search reservations when user clicks the 'Search' button. 11/ summary> 1/1 > param > II/ > param > 0 references private void ReservationsSearchButton_Click(object sender, RoutedEventArgs e) \{ // Get reservation code search input value // Get airline code search input value II Get name search input value I/ Call SearchReservations with reservation code, airline code, and name 111 1/1 Populates reservation inputs 11/ summary> 1/1 xVm ">ReservationViewModel instance / param > 1 reference private void PopulateReserveInputs(ReservationViewModel? rvm) if (rvm I= null) I/ Set "Code" input value to reservation code // Set "Flight" input value to flight code var airline = AirlineManager. FindAirline(rvm. Reservation, Flight. Airline(ode) If Set "Airline" input value to airline name (not code) If Declare variable costperSeatFormatted and assign the cost per seat in currency I/ Set "Cost" input value to costPerSeatFormatted 111 I/I Updates a reservation when user clicks the 'Update' button 111 summary> 11/ > param > 1/1 em> param> 0 references private void ReservationsUpdateButton_CLLek(object sender, RoutedEventArgs e) I/ Get reservation code input value I/ Get "Name" input value I/ Get "Citizenship" input value I/ Create bool variable called "isReservationActive" I/ Check if "Status" combobo has "Active" selected I/ Assign true to "isReservationActive" 1/ Otherwise I/ Assign false to "isReservationActive" I/ Call UpdateReservation method with code, name, citizenship, and isActive Provided Methods 0 references private void Button_Click(object sender, RoutedEventArgs e) \{

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!