public void Execute(IRunnerMain bootstrap) { var bootstrapper = (Bootstrapper)bootstrap; bootstrapper?.Builder.RegisterType <MainWindow>(); bootstrapper?.Builder.RegisterType <MainWindowViewModel>().SingleInstance(); }
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(); }
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>(); }
public void Execute(IRunnerMain bootstrap) { var bootstrapper = (Bootstrapper)bootstrap; bootstrapper?.Builder.RegisterType <TableManipulation>(); }