Пример #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            AppStartup startup = new AppStartup();

            startup.Initialize();
            startup.Boot();
        }
Пример #2
0
        public MainWindow()
        {
            AppStartup.Initialize();
            InitializeComponent();

            var vmc = DI.Provider.GetService <ViewModelsController>();

            DataContext = vmc.GetViewModel <WindowViewModel>();
        }