Example #1
0
        public static void Compose(IApplicationContainer container)
        {
            container.RegisterSingleton <IMainView, NewMainView>()
            .RegisterSingleton <IAppContext, AppContext>()
            .RegisterSingleton <IAppView, AppView>()
            .RegisterView <IConfigView, ConfigView>()
            .RegisterInstance <IApplicationContainer>(container)
            .RegisterService <MapLegendPresenter>()
            .RegisterService <MapLegendDockPanel>()
            .RegisterService <OverviewPresenter>()
            .RegisterService <OverviewDockPanel>();

            Services.CompositionRoot.Compose(container);
            Plugins.CompositionRoot.Compose(container);
            UI.CompositionRoot.Compose(container);


            CommandBarHelper.InitMenuColors();

            // GridEngineFactory.Factory = new AllowResizingIndividualRows();
        }
Example #2
0
        public static void Compose(IApplicationContainer container)
        {
            container.RegisterSingleton <IMainView, NewMainView>()
            .RegisterSingleton <IAppContext, AppContext>()
            .RegisterView <IAboutView, AboutView>()
            .RegisterView <IWelcomeView, WelcomeView>()
            .RegisterView <IConfigView, ConfigView>()
            .RegisterSingleton <IAppView, AppView>()
            .RegisterInstance <IApplicationContainer>(container)

            .RegisterService <ContextMenuView>()
            .RegisterService <ContextMenuPresenter>();

            Common.Services.CompositionRoot.Compose(container);
            Common.Plugins.CompositionRoot.Compose(container);
            Common.UI.CompositionRoot.Compose(container);



            CommandBarHelper.InitMenuColors();

            GridEngineFactory.Factory = new AllowResizingIndividualRows();
        }
Example #3
0
        public static void Compose(IApplicationContainer container)
        {
            container.RegisterSingleton <IMainView, MainView>()
            .RegisterSingleton <IAppContext, AppContext>()
            .RegisterView <ISetProjectionView, SetProjectionView>()
            .RegisterView <ILegendGroupView, LegendGroupView>()
            .RegisterView <IMeasuringView, MeasuringView>()
            .RegisterView <IAboutView, AboutView>()
            .RegisterView <IWelcomeView, WelcomeView>()
            .RegisterView <IConfigView, ConfigView>()
            .RegisterView <IGeoLocationView, GeoLocationView>()
            .RegisterView <ICreatePyramidsView, CreatePyramidsView>()
            .RegisterView <ISpatialIndexView, SpatialIndexView>()
            .RegisterView <ISetScaleView, SetScaleView>()

            .RegisterSingleton <IAppView, AppView>()
            .RegisterInstance <IApplicationContainer>(container)
            .RegisterService <LegendPresenter>()
            .RegisterService <LegendDockPanel>()
            .RegisterService <ContextMenuView>()
            .RegisterService <ContextMenuPresenter>();

            Services.CompositionRoot.Compose(container);
            Plugins.CompositionRoot.Compose(container);
            Projections.CompositionRoot.Compose(container);
            UI.CompositionRoot.Compose(container);
            Data.CompositionRoot.Compose(container);
            Tools.CompositionRoot.Compose(container);
            Gdal.CompositionRoot.Compose(container);
            Attributes.CompositionRoot.Compose(container);
            Tiles.CompositionRoot.Compose(container);

            CommandBarHelper.InitMenuColors();

            GridEngineFactory.Factory = new AllowResizingIndividualRows();
        }