public void RefreshView(Goal_V2_ModelCollection modelCollection) { decimal ExpensesTotal = DataReformatter.GetExpensesTotal(modelCollection.ExpenseModels); SpentAmount.text = "$" + ExpensesTotal.ToString(); PlannedAmount.text = "$" + modelCollection.GoalModel.Amount.ToString(); decimal RemainingDecimal = modelCollection.GoalModel.Amount - ExpensesTotal; RemainingAmount.text = "$" + RemainingDecimal.ToString(); }
public void ConstructView(Goal_V2_ModelCollection modelCollection) { RefreshView(modelCollection); }