internal void UpdateCartControllers() { lbl_cartSize.Text = $"({_cart.Items.Count()})"; _mainForm.GetLabelCartSize().Text = $"({_cart.Items.Count()})"; double totalCost = _catalogManager.CalculateCartTotalCostByStore(_cart, _store); totalCost = Math.Round(totalCost, Constants.CostProximity); lbl_totalCost.Text = $"{totalCost} {Constants.Currency}"; }
private double GetTotalCostOfStore(Store store) { double totalCost = _catalogManager.CalculateCartTotalCostByStore(_cart, store); return(Math.Round(totalCost, Constants.CostProximity)); }