Пример #1
0
        private void ConfigureViews(IViewFactory viewFactory, IServiceCollection services)
        {
            services.AddTransient <TestEnvironmentPage>();
            services.AddTransient <TestEnvironmentViewModel>();
            viewFactory.RegisterStartupPage <TestEnvironmentViewModel, TestEnvironmentPage>();

            services.AddTransient <ParameterManager>();
            viewFactory.Register <ParameterManagerViewModel, ParameterManager>();

            services.AddTransient <ParameterSettingsWindow>();
            viewFactory.Register <ParameterSettingsWindowViewModel, ParameterSettingsWindow>();

            services.AddTransient <RandomNumberView>();
            viewFactory.Register <RandomNumberParameterSettings, RandomNumberView>();

            services.AddTransient <RandomDateRangeView>();
            viewFactory.Register <RandomDateRangeParameterSettings, RandomDateRangeView>();

            services.AddTransient <MssqlParameterView>();
            viewFactory.Register <MssqlQueryParameterSettings, MssqlParameterView>();

            services.AddTransient <ConnectionWindow>();
            viewFactory.Register <AddEditConnectionViewModel, ConnectionWindow>();

            services.AddTransient <ConnectionManager>();
            viewFactory.Register <ConnectionManagerViewModel, ConnectionManager>();

            services.AddTransient <QueryExecutionDetailsWindow>();
            viewFactory.Register <QueryExecutionDetailsViewModel, QueryExecutionDetailsWindow>();

            services.AddTransient <InvalidQueryStressTestWindow>();
            viewFactory.Register <InvalidQueryStressTestViewModel, InvalidQueryStressTestWindow>();
        }