Esempio n. 1
0
        public PurchaseReceiveForm()
        {
            InitializeComponent();
            IKernel kernel = BootStrapper.Initialize();

            _purchaseReceiveService = kernel.GetService(typeof(PurchaseReceiveService)) as PurchaseReceiveService;
            _purchaseChallanService = kernel.GetService(typeof(PurchaseChallanService)) as PurchaseChallanService;

            _purchaseReceive = new PurchaseReceiveModel();
        }
Esempio n. 2
0
        public ProductStoreForm()
        {
            InitializeComponent();
            IKernel kernel = BootStrapper.Initialize();

            _productStoreService          = kernel.GetService(typeof(ProductStoreService)) as ProductStoreService;
            _purchaseReceiveService       = kernel.GetService(typeof(PurchaseReceiveService)) as PurchaseReceiveService;
            _purchaseReceiveDetailService = kernel.GetService(typeof(PurchaseReceiveDetailService)) as PurchaseReceiveDetailService;
            _productUnitService           = kernel.GetService(typeof(ProductUnitService)) as ProductUnitService;
            _productSectionService        = kernel.GetService(typeof(ProductSectionService)) as ProductSectionService;

            _productStore = new ProductStoreModel();
        }