public static void LoadModule(INinjectModule module) { ModuleLoadExtensions.Load(Kernel, (INinjectModule[])new INinjectModule[1] { module }); }
static void Main() { var kernel = new StandardKernel(); ModuleLoadExtensions.Load(kernel, Assembly.GetExecutingAssembly()); var productManager = kernel.Get <IProductManager>(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new PointOfSaleSystem(productManager)); }