Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        protected override void ConfigureServiceLocator()
        {
            SplashScreenManager.SetText("Configuring service locator");

            base.ConfigureServiceLocator();

            SplashScreenManager.AddProgress(100.0 / numberOfSteps);
        }
Ejemplo n.º 3
0
        protected override void ConfigureRegionAdapterMappings(RegionAdapterMappings regionAdapterMappings)
        {
            SplashScreenManager.SetText("Configuring adapter mappings");

            base.ConfigureRegionAdapterMappings(regionAdapterMappings);

            SplashScreenManager.AddProgress(100.0 / numberOfSteps);
        }
Ejemplo n.º 4
0
        protected override void ConfigureDefaultRegionBehaviors(IRegionBehaviorFactory regionBehaviors)
        {
            SplashScreenManager.SetText("Configuring region behaviors");

            base.ConfigureDefaultRegionBehaviors(regionBehaviors);

            SplashScreenManager.AddProgress(100.0 / numberOfSteps);
        }
Ejemplo n.º 5
0
        protected override void ConfigureModuleCatalog(IModuleCatalog moduleCatalog)
        {
            SplashScreenManager.SetText("Loading modules");

            base.ConfigureModuleCatalog(moduleCatalog);

            SplashScreenManager.AddProgress(100.0 / numberOfSteps);
        }
Ejemplo n.º 6
0
        protected override IModuleCatalog CreateModuleCatalog()
        {
            SplashScreenManager.SetText("Creating module catalog");

            var catalog = base.CreateModuleCatalog();

            SplashScreenManager.AddProgress(100.0 / numberOfSteps);

            return(catalog);
        }
Ejemplo n.º 7
0
        protected override Window CreateShell()
        {
            SplashScreenManager.SetText("Creating shell");

            var vm = CreateMainWindow();

            vm.Loaded += MainWindow_Loaded;

            SplashScreenManager.AddProgress(25);

            return(vm);
        }
Ejemplo n.º 8
0
        protected override void OnInitialized()
        {
            SetupExceptionHandling();

            SplashScreenManager.SetText("Initilizing");

            base.OnInitialized();

            SplashScreenManager.AddProgress(25);

            stopWatch.Stop();

            Console.WriteLine(stopWatch.Elapsed);
        }