Esempio n. 1
0
        public InstallerMainWindow(InstallerMainWindowViewModel viewModel, Engine engine)
        {
            this.DataContext = viewModel;

            this.Loaded += (sender, e) => engine.CloseSplashScreen();
            this.Closed += (sender, e) => this.Dispatcher.InvokeShutdown();             // shutdown dispatcher when the window is closed.

            this.InitializeComponent();
        }
		public InstallerMainWindow(InstallerMainWindowViewModel viewModel, Engine engine)
		{
			this.DataContext = viewModel;

			this.Loaded += (sender, e) => engine.CloseSplashScreen();
			this.Closed += (sender, e) => this.Dispatcher.InvokeShutdown(); // shutdown dispatcher when the window is closed.

			this.InitializeComponent();
		}