public UpdateProducts(NinjectModule module, Product product)
 {
     _module = module;
     Product1 = product;
     _productService = Instancefactory.GetInstance<IProductService>(module);
     _categoryService = Instancefactory.GetInstance<ICategoryService>(module);
     InitializeComponent();
 }
Beispiel #2
0
 public MainMenu(NinjectModule module)
 {
     _module          = module;
     _productService  = Instancefactory.GetInstance <IProductService>(_module);
     _cartService     = Instancefactory.GetInstance <ICartService>(_module);
     _categoryService = Instancefactory.GetInstance <ICategoryService>(_module);
     InitializeComponent();
     _cart = new Cart();
 }