private void ViewItem(clsInventory prInventory) { if (prInventory != null) { _CurrentInventoryItem = prInventory; NavigationService.Navigate(new Uri("/pgItemDetails.xaml", UriKind.Relative)); } }
private void UpdatePage(clsInventory prInventory) { _Inventory = null; _Inventory = prInventory; txbBrand.Text = _Inventory.Brand; txbModel.Text = _Inventory.ModelName; txbStock.Text = _Inventory.StockQuantity.ToString(); txbPrice.Text = _Inventory.Price.ToString(); }
private void UpdatePage(clsInventory prInventory) { _Inventory = prInventory; txtBrand.Text = _Inventory.Brand; txtModel.Text = _Inventory.ModelName; txtStock.Text = _Inventory.StockQuantity.ToString(); txtPrice.Text = _Inventory.Price.ToString(); txtStyle.Text = _Inventory.Style; (ctcItemSpecs.Content as IItemControl).UpdateControl(prInventory); }
public void UpdateControl(clsInventory prInventory) { clsNew lcNew = (clsNew)prInventory; txtCountryProduced.Text = lcNew.CountryProduced; txtDateProduced.Text = lcNew.DateProduced.ToString(); }
private void RunUsed(clsInventory prInventory) { ctcItemSpecs.Content = new ucUsed(); PageTitle.Text = "Used Item"; UpdatePage(prInventory); }
private void RunNew(clsInventory prInventory) { ctcItemSpecs.Content = new ucNew(); PageTitle.Text = "New Item"; UpdatePage(prInventory); }
public void UpdateControl(clsInventory prInventory) { clsUsed lcUsed = (clsUsed)prInventory; txtCondition.Text = lcUsed.ItemCondition; txtAge.Text = lcUsed.Age.ToString(); }