Example #1
0
        public App()
        {
            this.InitializeComponent();

            // Configure dependency injection.
            var container = new UnityContainer();

            this.ConfigureContainer(container);

            // Initialize app.
            this.ViewModelFactory    = container.Resolve <IViewModelFactory>();
            this.cefConfigureService = container.Resolve <ICefConfigureService>();
            this.cefConfigureService.Configure();

            // Open the main window.
            var mainWindow = new MainWindow();

            mainWindow.Show();

            // Open the notifications window.
            var notificationsWindow = new NotificationWindow();

            notificationsWindow.Show();

            // Focus the main window.
            mainWindow.Focus();
        }