Пример #1
0
 void RegisterTools(IToolFactory factory)
 {
     TextEditor_DependencyInjectionContainer.RegisterTools(factory);
     KitbasherEditor_DependencyInjectionContainer.RegisterTools(factory);
     View3D_DependencyInjectionContainer.RegisterTools(factory);
     AnimMetaEditor_DependencyInjectionContainer.RegisterTools(factory);
     AnimationEditors_DependencyInjectionContainer.RegisterTools(factory);
     AnimationFragment_DependencyInjectionContainer.RegisterTools(factory);
     AnimationPack_DependencyInjectionContainer.RegisterTools(factory);
 }
Пример #2
0
        private void ConfigureServices(IServiceCollection services)
        {
            services.AddSingleton <ApplicationSettingsService>();
            services.AddSingleton <ToolFactory>();
            services.AddSingleton <FileTypes.PackFiles.Models.PackFileDataBase>();
            services.AddSingleton <SkeletonAnimationLookUpHelper>();

            services.AddTransient <GameInformationService>();
            services.AddTransient <MainWindow>();
            services.AddTransient <MainViewModel>();
            services.AddTransient <SettingsWindow>();
            services.AddTransient <SettingsViewModel>();
            services.AddTransient <MenuBarViewModel>();
            services.AddTransient <PackFileService>();
            services.AddTransient <SchemaManager>();

            TextEditor_DependencyInjectionContainer.Register(services);
            KitbasherEditor_DependencyInjectionContainer.Register(services);
            View3D_DependencyInjectionContainer.Register(services);
            AnimMetaEditor_DependencyInjectionContainer.Register(services);
            AnimationEditors_DependencyInjectionContainer.Register(services);
            AnimationFragment_DependencyInjectionContainer.Register(services);
            AnimationPack_DependencyInjectionContainer.Register(services);
        }