Beispiel #1
0
 public void Initialize(ProductViewModel product)
 {
     if (product == null) return;
     Name = product.Name;
     Description = product.Description;
     ListPriceNumeric = product.ListPriceNumeric;
     ProductInfo = product.ProductInfo;
 }
 public void ContinueToProduct(ProductViewModel product)
 {
     if (ProductViewModel == null) ProductViewModel = new ProductViewModel();
     ProductViewModel.Initialize(product); // Note that we update the existing ProductViewModel instance instead of replacing it with a new instance, because views may exist that are bound to the existing instance.
     RunOnUIThread(() => _navigator.NavigateToProductView());
 }