/// <summary> /// Add the product to cart on add button clicked. /// </summary> private void ClickAddButton(object sender, System.EventArgs events) { string productName = _currentSelectedProduct.Name; string productType = _currentSelectedProduct.Type; string productPrice = _currentSelectedProduct.Price.ToString(); _cartDataGridView.Rows.Add(productName, productType, productPrice); _model.AddTotalPrice(_currentSelectedProduct.Price); ShowCartTotalPrice(); }