コード例 #1
0
ファイル: UIStartup.cs プロジェクト: dudinda/Image-Processing
        public void Build(IComponentProvider builder)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            new Startup().Build(builder);

            builder
            .RegisterSingletonView <IMainView, MainForm>()
            .RegisterSingletonView <ISettingsView, SettingsForm>()
            .RegisterSingletonView <IQualityMeasureView, QualityMeasureForm>()
            .RegisterTransientView <IHistogramView, HistogramForm>()
            .RegisterTransientView <IConvolutionView, ConvolutionForm>()
            .RegisterTransientView <IRgbView, RgbForm>()
            .RegisterTransientView <IDistributionView, DistributionForm>()
            .RegisterTransientView <IColorMatrixView, ColorMatrixForm>()
            .RegisterTransientView <ITransformationView, TransformationForm>()
            .RegisterTransient <IRgbFormEventBinder, RgbFormEventBinder>()
            .RegisterTransient <IColorMatrixEventBinder, ColorMatrixEventBinder>()
            .RegisterTransient <IConvolutionFormEventBinder, ConvolutionFormEventBinder>()
            .RegisterTransient <IDistributionFormEventBinder, DistributionFormEventBinder>()
            .RegisterTransient <ISettingsFormEventBinder, SettingsFormEventBinder>()
            .RegisterTransient <ITransformationFormEventBinder, TransformationFormEventBinder>()
            .RegisterTransient <IMainFormEventBinder, MainFormEventBinder>()
            .RegisterTransient <IMainFormContainerFactory, MainFormContainerFactory>()
            .RegisterTransient <IMainFormUndoRedoFactory, MainFormUndoRedoFactory>()
            .RegisterTransient <IMainFormZoomFactory, MainFormZoomFactory>()
            .RegisterTransient <IMainFormRotationFactory, MainFormRotationFactory>();
        }