예제 #1
0
 /// <summary>
 /// Constructs with random data.
 /// </summary>
 public OrderFormPage()
 {
     Items =
         Enumerable.Range(1, 50)
         .Select(i => new Order($"Item {i}", i * 100))
         .ToArray();
     Header =
         new OrderFormHeader(
             "Foo Bar Inc.",
             new DateTime(2017, 01, 15),
             Items.Sum(item => item.TotalPrice),
             pageIndex: 0,
             pageCount: 1
             );
 }
예제 #2
0
 public OrderFormPage(OrderFormHeader header, IReadOnlyList <Order> items)
 {
     Header = header;
     Items  = items;
 }