Download Master Thesis
Transcript
8 Application Architecture The application uses WPF (4) as a presentation framework. The architecture is based on the MVVM (5) design pattern and it has four layers as shown in the Figure 11. This architecture was successfully validated using the Microsoft Visual Studio 2012 Ultimate. When compared to the MVVM diagram in the Figure 6, there are some differences. There are two additional layers in this diagram. The Data Access layer is responsible for storing and loading the models. It is referenced from the View Models layer where all load and store operations are executed, and it has a dependency to the Models layer because it works with them directly. The Interaction Service layer enables the View Models layer to communicate with the Views layer without having to interact with it directly. For example, when the View Model needs to create a new dialog window, it does not create and display it directly, because it would be a violation of the MVVM architecture, but it calls the Interaction Service instead. This service raises the event in the View and the View layer takes care of instantiating the new dialog window. Figure 11 Layer diagram The Views layer contains all custom user controls, windows and adorners. Windows are written entirely in XAML (4.3) and connected to the corresponding 31