public void addToComboOrListBox(IListItems item) { nameTextBox.Text = item.name; caloriesTextBox.Text = item.calories.ToString(); fatTextBox.Text = item.fats.ToString(); saturatesTextBox.Text = item.saturatedFat.ToString(); carbsTextBox.Text = item.carbohydrates.ToString(); sugarsTextBox.Text = item.sugar.ToString(); fibreTextBox.Text = item.fibre.ToString(); proteinTextBox.Text = item.protein.ToString(); saltTextBox.Text = item.salt.ToString(); nutritionItemId.Text = item.nutritionId.ToString(); if (item.amount > 0) { amountTextbox.Text = item.amount.ToString(); } else { amountTextbox.Clear(); } }
public ItemsController(IListItems listItems, IWinner winner, ILogger <ItemsController> loggerFactory) { _logger = loggerFactory; _listItems = listItems; _winner = winner; }
public ListItemsController(IListItems ListItems) { _IListItems = ListItems; }
public ItemsController(IListItems listItems, ILoggerFactory loggerFactory, IWinner winner) { _listItems = listItems; _loggerFactory = loggerFactory; _winner = winner; }