Пример #1
0
 private void BuildTable(IEnumerable <Product> products)
 {
     foreach (var prod in products)
     {
         ContainerTable.Add(
             new Product
         {
             Id           = prod.Id,
             Name         = prod.Name,
             Description  = prod.Description,
             Quantity     = prod.Quantity,
             Status       = prod.Status,
             Unit         = prod.Unit,
             CategoryId   = prod.CategoryId,
             CategoryName = prod.CategoryName,
         });
     }
 }