2012-05-19

Articles

DW.Services

 

DW.Services

Applications need possibilities to show for example an open file dialog, but if you use a pattern like MVVM you have the problem when to create and display the dialogs. For that everybody starts to use a ServiceLocator, sometimes called ServiceProvider.

This library contains many default services for the daily use, like the DialogService or the WindowService.


 

alt BrowseFolderDialog
 

This BrowseFolderDialog is a wrapper class for let a service describes which and how a real folder browse dialog will be displayed. With this you can display the dialog in the real environment and use a mock in unit tests.


alt ColorPickerDialog
 

This ColorPickerDialog is a wrapper class for let a service decides which and how a real color picker dialog will be displayed. With this you can display the dialog in the real environment and use a mock in unit tests.


alt FontPickerDialog
 

This FontPickerDialog is a wrapper class for let a service decides which and how a real font picker dialog will be displayed. With this you can display the dialog in the real environment and use a mock in unit tests.


alt [I]DialogService
 

The IDefaultService interface is the base for services for display windows dialogs like the OpenFileDialog or the BrowseFolderDialog. This library contains also a default implementation called DialogService.


alt [I]FileFolderService
 

The IFileFolderService interface is the base for services for working with local files or folders. This library contains also a default implementation called FileFolderService.


alt [I]MessageBoxService
 

The IMessageBoxService interface is the base for services for display MessageBoxes. This library contains also a default implementation called MessageBoxService.


alt [I]WindowService
 

The IWindowService interface is the base for services for display and register child window controls. This library contains also a default implementation called WindowService.


alt OpenFileDialog
 

This OpenFileDialog is a wrapper class for let a service decides which and how a real open file dialog will be displayed. With this you can display the dialog in the real environment and use a mock in unit tests.


alt SaveFileDialog
 

This SaveFileDialog is a wrapper class for let a service decides which and how a real save file dialog will be displayed. With this you can display the dialog in the real environment and use a mock in unit tests.