Question: Guaranteed upvote if everything is complete and correct, use a software to complete this instead of hand written, no explanation needed, thank you. Bill Fields:

Guaranteed upvote if everything is complete and correct, use a software to complete this instead of hand written, no explanation needed, thank you.
Bill
Fields:
double ItemsPrice
double HST
double Tip
double TotalPrice
Constructor:
Bill(List selectedDishes)
Methods:
None (all properties are read-only)
Dish
Fields:
string Name
double Price
string Description
string Image
Constructor:
Dish(string name, double price, string description, string image)
Methods:
None (fields are directly set by the constructor)
OrderManager
Fields:
static OrderManager _instance
List _selectedDishes
Constructor:
private OrderManager()
Methods:
public static OrderManager Instance
public void Add(Dish dish)
public void Remove(Dish dish)
public List GetSelectedDishes()
OrderPage
Fields:
ListView DishesListView
Constructor:
public OrderPage()
Methods:
private void LoadDishes()
private async void OnDishSelected(object sender, ItemTappedEventArgs e)
private async void OnViewOrderClicked(object sender, EventArgs e)
SummaryPage
Fields:
Bill Bill
Constructor:
public SummaryPage()
Methods:
None (binding context is set in the constructor)
ViewOrderPage
Fields:
ListView OrderListView
Constructor:
public ViewOrderPage()
Methods:
private void OnRemoveDish(object sender, ItemTappedEventArgs e)
private async void OnAddMoreItemsClicked(object sender, EventArgs e)
private async void OnCheckOutClicked(object sender, EventArgs e)
App
Fields:
None
Constructor:
public App()
Methods:
None (initializes the application and sets the MainPage)
AppShell
Fields:
None
Constructor:
public AppShell()
Methods:
None (sets up the application shell)
MainPage
Fields:
None
Constructor:
public MainPage()
Methods:
private async void OnStartOrderClicked(object sender, EventArgs e)
Relationships
OrderPage - uses OrderManager to add dishes to the order.
ViewOrderPage - uses OrderManager to remove dishes from the order and shows the list of selected dishes.
SummaryPage - creates a Bill object using the selected dishes from OrderManager and displays the summary.
MainPage - navigates to OrderPage when the "Start your order" button is clicked.
AppShell - sets up the navigation for the application.
App - initializes the application and sets AppShell as the main page.

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 Programming Questions!