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

            var boot = new Bootloader();

            boot.Container.ExportAssembly(Assembly.GetAssembly(typeof(EventHandlerServiceWpf)));

            boot.Boot();
        }
Пример #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            var boot = new Bootloader();

            boot.Container.ExportInitialize <OptionsServicesWpf>((c, a, o) => o.SetRegistryPath("CHMP"));
            NotifyHelper.EventHandlerService = new EventHandlerServiceWpf(); // boot.Container.Locate<IEventHandlerService>();
            //boot.Container.ExportInitialize<BootLoaderErpWpf>((c, a, o) => o.SetMainViewMode(typeof(ViewModeKiosk)));

            boot.Boot();
        }