Пример #1
0
        private void OpenStore_Click(object sender, EventArgs e)
        {
            Products.Items.Clear();

            if (Store.SelectedItem == null)
            {
                return;
            }

            String       selected     = Store.SelectedItem.ToString();
            StoreRawData storeRawData = new StoreRawData();

            storeRawData.RefactorString(selected);

            List <StoreProduct> storeProducts = controllerStoreProduct.GetStoreProducts(storeRawData.ID);

            if (storeProducts == null)
            {
                return;
            }
            foreach (StoreProduct product in storeProducts)
            {
                Products.Items.Add(product.ToString());
            }
        }
Пример #2
0
        ///////////////////////////////////// Store Products /////////////////////////////////////

        private void BShowStoreProduct_Click(object sender, EventArgs e)
        {
            this.ProductList.Items.Clear();
            List <StoreProduct> storeProductList = controllerStoreProduct.GetStoreProducts(controllerStore.store.storeData.storeData.ID);

            if (storeProductList == null)
            {
                return;
            }

            foreach (StoreProduct product in storeProductList)
            {
                this.ProductList.Items.Add(product.ToString());
            }
        }