Exemple #1
0
 public void NotifyObservers()
 {
     Observers.ForEach((observer) => observer.Update <ProductRowViewerViewModel>(
                           new ProductRowViewerViewModel
     {
         ID             = ProductID.GetValueOrDefault(),
         Name           = ProductName,
         Category       = ProductCategory.Value,
         Description    = ProductDescription,
         Price          = ProductPrice.GetValueOrDefault(),
         StoredQuantity = ProductStoredQuantity.GetValueOrDefault(),
         Picture        = mProductImage
     })
                       );
 }