Пример #1
0
 public static void Main()
 {
     var app = new App();
     var ourWindow = new MainWindow();
     var presenter = new MultiRegionPresenter(ourWindow);
     var setup = new Setup(app.Dispatcher, presenter);
     setup.Initialize();
     app.MainWindow.Show();
     app.Run();
 }
Пример #2
0
 public static void Main()
 {
     var app = new App();
     // if Call InitializeComponent to ensure any App.Xaml resources are loaded 
     //app.InitializeComponent();
     var ourWindow = new MainWindow();
     var presenter = new MultiRegionPresenter(ourWindow);
     var setup = new Setup(app.Dispatcher, presenter);
     setup.Initialize();
     app.MainWindow.Show();
     app.Run();
 }
 public MultiRegionPresenter(MainWindow mainWindow)
 {
     _mainWindow = mainWindow;
 }