Ejemplo n.º 1
0
 private void EditShoppingCartForm_Load(object sender, EventArgs e)
 {
     comboBoxProduct.DataSource = _productService.GetAllNames().ToArray();
     this.Text += " " + _shoppingCart.Number.ToString();
     checkBoxDelivered.Checked = _shoppingCart.Delivered;
     _bindingListCart          = new BindingList <CartProductView>(_cartProductService.GetByCartId(_shoppingCart.Id));
     dataGridCart.DataSource   = _bindingListCart;
 }
Ejemplo n.º 2
0
 private void Reload()
 {
     dataGridCart.DataSource = _cartProductService.GetByCartId(_cartId);
 }