Пример #1
0
 private void frmBooksStore_Load(object sender, EventArgs e)
 {
     IList<Book> allBooks =this._bookService.GetAll();
     this._order = new Order(allBooks);
     foreach (OrderItem item in this._order.Items)
     {
         OrderItemControl crtl = new OrderItemControl(item);
         Label lbl = new Label() { Text = item.Book.Name };
         flowLayoutPanel1.Controls.Add(crtl);
     }
 }
Пример #2
0
 public frmCart(Order order)
 {
     InitializeComponent();
     this._order = order;
     this._orderService = new OrderService();
 }