public MenuController() { this.View = new MenuView(); this.View.ActionButton = new ButtonView() { Enabled = false, Text = "Next", Action = ButtonAction }; }
public async Task PopulateMenu() { MenuResponse response = await ApiService.GetMenu(); this.View = new MenuView(); foreach (var item in response.Items) { var row = new MenuView.MenuTableRow() { Item = item }; foreach (var option in item.Options) { row.Options.Add(new MenuView.MenuTableOption() { Option = option }); } View.Rows.Add(row); } }
public void UpdateCell(MenuView.MenuTableRow row) { }
public void SelectOption(MenuView.MenuTableRow row, MenuView.MenuTableOption option) { }