Ejemplo n.º 1
0
 private void UpdatePage(clsInventory prInventory)
 {
     _Inventory            = prInventory;
     lblDescription.Text   = _Inventory.description;
     txtPrice.Text         = _Inventory.pricePerItem.ToString();
     txtStockQuantity.Text = _Inventory.quantity.ToString();
     lblCategory.Text      = _Inventory.category;
     (ctcInventoryDetails.Content as IInventoryControl).UpdateControl(prInventory);
 }
Ejemplo n.º 2
0
        public void DispatchInventoryForm(clsInventory prInventory)
        {
            Dictionary <string, Delegate> _InventoryForm = new Dictionary <string, Delegate>
            {
                { "Clothing", new LoadInventoryControlDelegate(RunClothing) },
                { "Furniture", new LoadInventoryControlDelegate(RunFurniture) }
            };

            _InventoryForm[prInventory.category].DynamicInvoke(prInventory);
            UpdatePage(prInventory);
        }
Ejemplo n.º 3
0
        //public void PushData(clsInventory prInventory)
        //{
        //    throw new NotImplementedException();
        //}

        public void UpdateControl(clsInventory prInventory)
        {
            txtFurnitureWeight.Text   = prInventory.furnitureWeight.ToString();
            txtFurnitureNumParts.Text = prInventory.furnitureNumParts.ToString();
        }
Ejemplo n.º 4
0
 internal static async Task <string> UpdateInventoryAsync(clsInventory prInventory)
 {
     return(await InsertOrUpdateAsync(prInventory, "http://localhost:60064/api/bshop/PutInventory", "PUT"));
 }
Ejemplo n.º 5
0
 public void UpdateControl(clsInventory prInventory)
 {
     txtClothingSize.Text   = prInventory.clothingSize.ToString();
     txtClothingGender.Text = prInventory.clothingGender;
 }
Ejemplo n.º 6
0
 private void RunFurniture(clsInventory prInventory)
 {
     ctcInventoryDetails.Content = new ucFurniture();
 }
Ejemplo n.º 7
0
 private void RunClothing(clsInventory prInventory)
 {
     ctcInventoryDetails.Content = new ucClothing();
 }