To apply what we have learnt so far, we will create the navigation for our application. In this example, we will create three pages for navigation and a modal dialog to edit rooms. The flowchart will look like the following diagram:
Let us begin by creating a new navigation project, as we have learnt in this chapter. The project will be named
ReservationNavigation
. We will later add the following elements in theViews
folder:MapView: Object of the type
Page
. We will be able to navigate to this page via the general menu of the application. It will show a map on which to choose a building to edit.AdminView: Object of the type
Page
. We will be able to navigate to this page from the MapView page after choosing a building.AdminEditionView: Object of the type
ChildWindow
. This modal window will show a form with the necessary fields to edit/add/delete a room in a building.
Once we have added these two pages and the modal window; modify...