예제 #1
0
 protected override void OnStartup(StartupEventArgs args)
 {
     log4net.Config.XmlConfigurator.Configure();
     IocKernel.Initialize(new IocConfiguration());
     ViewModelLocator.SetupNavigation();
     base.OnStartup(args);
 }
예제 #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            Thread.CurrentThread.CurrentCulture   = CultureInfo.InvariantCulture;
            Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture;

            // inicializace DI kontejneru
            IocKernel.Initialize(new IocConfiguration());
        }
예제 #3
0
        protected override void OnStartup(StartupEventArgs e)
        {
            AutoMapperConfiguration.RegisterMappings();

            IocKernel.Initialize(new IocConfiguration());

            base.OnStartup(e);

            Current.MainWindow = IocKernel.Get <LoginWindow>();
            Current.MainWindow?.Show();
        }
예제 #4
0
        public App()
        {
            IocKernel.Initialize(new IocConfiguration());

            var mw = new MainWindow
            {
                DataContext = new MainViewModel()
            };

            mw.Show();
        }
예제 #5
0
        protected override void OnStartup(StartupEventArgs e)
        {
            IocKernel.Initialize(new IocConfiguration());

            base.OnStartup(e);

            _iocKernel = new StandardKernel();

            Current.MainWindow = _iocKernel.Get <AuthorizationWindow>();
            Current.MainWindow.Show();
        }
예제 #6
0
        private void App_OnStartup(object sender, StartupEventArgs e)
        {
            var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Databases");

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            AppDomain.CurrentDomain.SetData("DataDirectory", path);
            IocKernel.Initialize(new IocConfiguration());
        }
예제 #7
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            IocKernel.Initialize(new IocConfiguration());
            ApplicationViewModel applicationViewModel = IocKernel.Get <ApplicationViewModel>();

            MainWindow window = new MainWindow(applicationViewModel);

            window.Show();
        }
예제 #8
0
        public void TestInitialize()
        {
            _persons   = new List <Person>();
            _documents = new List <Document>();

            _parentMock           = new Mock <IChangeListener>();
            _documentStoreFactory = new TestDoucmentStoreFactory();

            _messageDialogServiceMock = new Mock <IMessageDialogService>();

            IocKernel.Initialize(new IocConfiguration());
        }
예제 #9
0
        protected override async void OnStartup(StartupEventArgs e)
        {
            IocKernel.Initialize();
            IocKernel.StartMessageHandlers();

            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

            GetLogger().Info("Application started");

            var settings = GetUserSettings();
            await settings.SetStartupDefaultsAsync();

            base.OnStartup(e);
        }
예제 #10
0
        public void TestInitialize()
        {
            _persons = new List <Person>();

            _documentStoreFactory = new TestDoucmentStoreFactory();
            _dispatcherMock       = new Mock <IDispatcher>();

            _excelImportServiceMock = new Mock <IExcelImportService>();
            _excelExportServiceMock = new Mock <IExcelExportService>();

            _messageDialogServiceMock = new Mock <IMessageDialogService>();

            IocKernel.Initialize(new IocConfiguration());
        }
예제 #11
0
        public App()
        {
            ServicePointManager.SecurityProtocol     = SecurityProtocolType.Tls12;
            AppDomain.CurrentDomain.AssemblyResolve += Resolver;
            IocKernel.Initialize(new IocConfiguration());

            Current.DispatcherUnhandledException       += this.CurrentOnDispatcherUnhandledException;
            AppDomain.CurrentDomain.UnhandledException += this.CurrentDomainOnUnhandledException;

            LogMachineDetails();
            var settingsService = IocKernel.Get <SettingsService>();
            var path            = Path.Combine(Environment.CurrentDirectory, SettingsPath);

            settingsService.LoadAsync(path);
            this.FixPreferences();
        }
예제 #12
0
        private static void Main()
        {
            IocKernel.Initialize(new IocConfiguration());

            //ClearDb();

            var core = IocKernel.Get <CoreProccessor>();

            CoreStarter.InitializeCore(core);

            var baseUrl = "http://*:3131";

            using (WebApp.Start <Startup>(baseUrl))
            {
                Console.ReadLine();
            }
        }
예제 #13
0
 public App()
 {
     IocKernel.Initialize(new IocConfiguration());
 }
예제 #14
0
 protected override void OnStartup(StartupEventArgs e)
 {
     IocKernel.Initialize(new IocConfiguration());
     base.OnStartup(e);
     _ = LoadContentAsync();
 }
        protected override void OnStartup(StartupEventArgs e)
        {
            IocKernel.Initialize(new IocResolver());

            base.OnStartup(e);
        }
예제 #16
0
파일: App.cs 프로젝트: shravyashravz/WPF
 protected override void OnStartup(StartupEventArgs e)
 {
     IocKernel.Initialize(new DependencyInjection());
     base.OnStartup(e);
 }
예제 #17
0
        protected override void OnStartup(StartupEventArgs e)
        {
            IocKernel.Initialize(new ThoeryIocConfiguration());

            base.OnStartup(e);
        }
예제 #18
0
 private static void InitializeContainer()
 {
     IocKernel.Initialize(new IocConfiguration());
 }
예제 #19
0
 protected override void OnStartup(StartupEventArgs e)
 {
     IocKernel.Initialize(new IocConfiguration());
     DispatcherHelper.Initialize();
     base.OnStartup(e);
 }
예제 #20
0
 public UnitTestServiceNinject()
 {
     IocKernel.Initialize(new DIModule());
 }
예제 #21
0
 protected override void OnStartup(StartupEventArgs eventArgs)
 {
     base.OnStartup(eventArgs);
     IocKernel.Initialize(new IocConfiguration());
 }