Пример #1
0
        public void Execute(IRunnerMain bootstrap)
        {
            var bootstrapper = (Bootstrapper)bootstrap;

            bootstrapper?.Builder.RegisterType <MainWindow>();
            bootstrapper?.Builder.RegisterType <MainWindowViewModel>().SingleInstance();
        }
Пример #2
0
        public void Execute(IRunnerMain bootstrap)
        {
            var bootstrapper = (Bootstrapper)bootstrap;

            bootstrapper?.Builder.RegisterType <ExcelInteraction>();

            bootstrapper?.Builder.RegisterType <ExcelDnaWpfHelper>().As <IWpfHelper>();
        }
Пример #3
0
        public void Execute(IRunnerMain bootstrap)
        {
            var thisAssembly = Assembly.GetExecutingAssembly();

            var bootstrapper = (Bootstrapper)bootstrap;

            bootstrapper?.Builder.RegisterAssemblyTypes(thisAssembly)
            .Where(t => t.Name.ToLower().EndsWith("controller"));
        }
Пример #4
0
        public void Execute(IRunnerMain bootstrap)
        {
            var thisAssembly = Assembly.GetExecutingAssembly();

            var bootstrapper = (Bootstrapper)bootstrap;

            bootstrapper?.Builder.RegisterAssemblyTypes(thisAssembly)
            .Where(t => t.Name.ToLower().EndsWith("controller"));


            bootstrapper?.Builder.RegisterType <ExcelHelper>().As <IExcelHelper>().SingleInstance();
            bootstrapper?.Builder.RegisterType <ZenrinModule>().As <IZenrinModule>().SingleInstance();
            bootstrapper?.Builder.RegisterType <IndustrialModule>().As <IIndustrialModule>().SingleInstance();
        }
Пример #5
0
        public void Execute(IRunnerMain bootstrap)
        {
            var bootstrapper = (Bootstrapper)bootstrap;

            // Excel Application
            bootstrapper?.Builder.RegisterInstance(AddinContext.ExcelApp).ExternallyOwned();

            // Ribbon
            bootstrapper?.Builder.RegisterInstance(new AddinRibbon());

            // ILogger
            bootstrapper?.Builder.RegisterInstance <ILogger>(new SerilogLogger());

            // Security
        }
Пример #6
0
        public void Execute(IRunnerMain bootstrap)
        {
            var bootstrapper = (Bootstrapper)bootstrap;

            bootstrapper?.Builder.RegisterType <MainWindow>();
            bootstrapper?.Builder.RegisterType <MainWindowViewModel>();

            bootstrapper?.Builder.RegisterType <MeetingWizardContainerViewModel>();
            bootstrapper?.Builder.RegisterType <MeetingWizardContainerView>();

            bootstrapper?.Builder.RegisterType <MeetingController>();


            bootstrapper?.Builder.RegisterType <MeetingWizardFirstView>();
            bootstrapper?.Builder.RegisterType <MeetingWizardSecondView>();
            bootstrapper?.Builder.RegisterType <MeetingWizardLastView>();

            bootstrapper?.Builder.RegisterType <MeetingWizardFirstViewModel>();
            bootstrapper?.Builder.RegisterType <MeetingWizardSecondViewModel>();
            bootstrapper?.Builder.RegisterType <MeetingWizardLastViewModel>();
        }
Пример #7
0
        public void Execute(IRunnerMain bootstrap)
        {
            var bootstrapper = (Bootstrapper)bootstrap;

            bootstrapper?.Builder.RegisterType <TableManipulation>();
        }