コード例 #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);