Exemple #1
0
        public void Execute(IRunnerMain bootstrap)
        {
            var bootstrapper = (Bootstrapper)bootstrap;

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

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

            bootstrapper?.Builder.RegisterType <ExcelDnaWpfHelper>().As <IWpfHelper>();
        }
        public void Execute(IRunnerMain bootstrap)
        {
            var thisAssembly = Assembly.GetExecutingAssembly();

            var bootstrapper = (Bootstrapper)bootstrap;

            bootstrapper?.Builder.RegisterAssemblyTypes(thisAssembly)
            .Where(t => t.Name.ToLower().EndsWith("controller"));
        }
        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();
        }
Exemple #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
        }
        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>();
        }
Exemple #7
0
        public void Execute(IRunnerMain bootstrap)
        {
            var bootstrapper = (Bootstrapper)bootstrap;

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