private void editProduct(clsAllProduct prProduct) { if (prProduct != null) { Frame.Navigate(typeof(pgProduct), prProduct); } }
private void updatePage(clsAllProduct prProduct) { _Product = prProduct; txtName.Text = _Product.ProductName; txtDate.Text = _Product.Date.ToString("d"); txtPrice.Text = _Product.Price.ToString(); (ctcProductSpecs.Content as IProductControl).UpdateControl(prProduct); }
internal static async Task <string> DeleteProductAsync(clsAllProduct prProduct) { using (HttpClient lcHttpClient = new HttpClient()) { HttpResponseMessage lcRespMessage = await lcHttpClient.DeleteAsync($"http://localhost:60064/api/product/DeleteProduct?ProductName={prProduct.ProductName}&PlaceName={prProduct.PlaceName}"); return(await lcRespMessage.Content.ReadAsStringAsync()); } }
public void UpdateControl(clsAllProduct prProduct) { txtPrice.Text = prProduct.Price.ToString(); txtAmount.Text = prProduct.Amount; }
public void PushData(clsAllProduct prProduct) { prProduct.Price = decimal.Parse(txtPrice.Text); prProduct.Amount = txtAmount.Text; prProduct.Category = "3"; }
private void dispatchWorkContent(clsAllProduct prProduct) { _ProductContent[prProduct.Category].DynamicInvoke(prProduct); updatePage(prProduct); }
private void RunVegetable(clsAllProduct prProduct) { ctcProductSpecs.Content = new ucVegetable(); }
private void RunMeat(clsAllProduct prProduct) { ctcProductSpecs.Content = new ucMeat(); }
private void RunFruit(clsAllProduct prProduct) { ctcProductSpecs.Content = new ucFruit(); }
public void UpdateControl(clsAllProduct prProduct) { txtPrice.Text = prProduct.Price.ToString(); txtFreshness.Text = prProduct.Freshness; }
public void PushData(clsAllProduct prProduct) { prProduct.Price = decimal.Parse(txtPrice.Text); prProduct.Freshness = txtFreshness.Text; prProduct.Category = "2"; }
public void UpdateControl(clsAllProduct prProduct) { txtPrice.Text = prProduct.Price.ToString(); txtQuality.Text = prProduct.Quality; }
public void PushData(clsAllProduct prProduct) { prProduct.Price = decimal.Parse(txtPrice.Text); prProduct.Quality = txtQuality.Text; prProduct.Category = "1"; }
internal static async Task <string> InsertProductAsync(clsAllProduct prProduct) { return(await InsertOrUpdateAsync(prProduct, "http://localhost:60064/api/product/PostProduct", "POST")); }
internal static async Task <string> UpdateProductAsync(clsAllProduct prProduct) { //throw new NotImplementedException(); return(await InsertOrUpdateAsync(prProduct, "http://localhost:60064/api/product/PutProduct", "PUT")); }