main
1using System.Windows;
2
3namespace solidware.financials.windows.ui
4{
5 public class WPFDialogLauncher : DialogLauncher
6 {
7 PresenterFactory factory;
8
9 public WPFDialogLauncher(PresenterFactory factory)
10 {
11 this.factory = factory;
12 }
13
14 public void launch<Presenter, Dialog>() where Presenter : DialogPresenter where Dialog : FrameworkElement, Dialog<Presenter>, new()
15 {
16 new Dialog().open(factory.create<Presenter>());
17 }
18 }
19}