BalloonsPop.GraphicUserInterface.WpfModule.Load C# (CSharp) Method

Load() public method

This overload of the method Load provides binding for the project exports.
public Load ( ) : void
return void
        public override void Load()
        {
            var window = new BalloonsView();
            var controller = new MainWindowController(window, new Resources());

            this.AppKernel.Unbind<IEventBasedUserInterface>();
            this.AppKernel.Unbind<IPrinter>();
            this.AppKernel.Bind<IEventBasedUserInterface>().ToMethod(ctx => controller);
            this.AppKernel.Bind<IPrinter>().ToMethod(ctx => controller);
        }