Esempio n. 1
0
 public BuyingProduct()
 {
     productService   = InstanceFactory.GetInstance <IProductService>();
     storeService     = InstanceFactory.GetInstance <IStoreService>();
     supplierService  = InstanceFactory.GetInstance <ISupplierService>();
     buyOrSellService = InstanceFactory.GetInstance <IBuyOrSellService>();
     createMessage    = new CreateMessage();
     InitializeComponent();
 }
        public SellingProduct()
        {
            productService        = InstanceFactory.GetInstance <IProductService>();
            storeService          = InstanceFactory.GetInstance <IStoreService>();
            customerService       = InstanceFactory.GetInstance <ICustomerService>();
            buyOrSellService      = InstanceFactory.GetInstance <IBuyOrSellService>();
            productInStoreService = InstanceFactory.GetInstance <IProductInStoreService>();
            createMessage         = new CreateMessage();

            InitializeComponent();
        }