protected override void RegisterTypes(IContainerRegistry containerRegistry) { SplashScreenManager.SetText("Registering types"); Kernel = Container.GetContainer(); VIoc.Kernel = Kernel; Kernel.Load <CommonNinjectModule>(); Kernel.Load <WPFNinjectModule>(); OnContainerCreated(); LoadModules(); CultureInfo.CurrentCulture = new CultureInfo("en-US"); logger = Container.Resolve <ILogger>(); windowManager = Container.Resolve <IWindowManager>(); ShowConsole(); var version = System.Reflection.Assembly.GetExecutingAssembly().GetName(); //Version version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; //DateTime buildDate = new DateTime(2000, 1, 1).AddDays(version.Build).AddSeconds(version.Revision * 2); //BuildVersion = Container.Resolve<IBasicInformationProvider>().GetFormattedExecutingAssemblyBuildVersion(); SplashScreenManager.AddProgress(100.0 / numberOfSteps); }
protected override void ConfigureServiceLocator() { SplashScreenManager.SetText("Configuring service locator"); base.ConfigureServiceLocator(); SplashScreenManager.AddProgress(100.0 / numberOfSteps); }
protected override void ConfigureRegionAdapterMappings(RegionAdapterMappings regionAdapterMappings) { SplashScreenManager.SetText("Configuring adapter mappings"); base.ConfigureRegionAdapterMappings(regionAdapterMappings); SplashScreenManager.AddProgress(100.0 / numberOfSteps); }
protected override void ConfigureDefaultRegionBehaviors(IRegionBehaviorFactory regionBehaviors) { SplashScreenManager.SetText("Configuring region behaviors"); base.ConfigureDefaultRegionBehaviors(regionBehaviors); SplashScreenManager.AddProgress(100.0 / numberOfSteps); }
protected override void ConfigureModuleCatalog(IModuleCatalog moduleCatalog) { SplashScreenManager.SetText("Loading modules"); base.ConfigureModuleCatalog(moduleCatalog); SplashScreenManager.AddProgress(100.0 / numberOfSteps); }
protected override IModuleCatalog CreateModuleCatalog() { SplashScreenManager.SetText("Creating module catalog"); var catalog = base.CreateModuleCatalog(); SplashScreenManager.AddProgress(100.0 / numberOfSteps); return(catalog); }
protected override Window CreateShell() { SplashScreenManager.SetText("Creating shell"); var vm = CreateMainWindow(); vm.Loaded += MainWindow_Loaded; SplashScreenManager.AddProgress(25); return(vm); }
protected override void OnInitialized() { SetupExceptionHandling(); SplashScreenManager.SetText("Initilizing"); base.OnInitialized(); SplashScreenManager.AddProgress(25); stopWatch.Stop(); Console.WriteLine(stopWatch.Elapsed); }