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; }
private void Reload() { dataGridCart.DataSource = _cartProductService.GetByCartId(_cartId); }