Пример #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var kernel = new StandardKernel();

            CompositionRoot.Init(kernel);
            //kernel.Load(Assembly.GetExecutingAssembly());

            CompositionRoot.Wire(new CompositeModule());
            //var kernel = new StandardKernel(new MyInjectModule());

            //Application.Run(CompositionRoot.Resolve<MNA>());
            //Application.Run(CompositionRoot.Resolve<MNA>());
            //Application.Run(CompositionRoot.Resolve<MNA>());
            var presenter = CompositionRoot.Resolve <IMnaPresenter>();

            presenter.Initialize();
            Application.Run((Form)presenter.Ui);
        }
Пример #2
0
 private void RegisterScreen(IMutableDependencyResolver splatLocator, CompositionRoot compositionRoot)
 {
 }
Пример #3
0
 private void RegisterCommandBinders(IMutableDependencyResolver splatLocator, CompositionRoot compositionRoot)
 {
 }
Пример #4
0
 protected abstract void RegisterPlatformComponents(IMutableDependencyResolver splatLocator, CompositionRoot compositionRoot);