Exemplo 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();
 }
Exemplo n.º 2
0
        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();
        }