コード例 #1
0
 public MenuController()
 {
     this.View = new MenuView(); 
     this.View.ActionButton = new ButtonView() 
     {
         Enabled = false,
         Text = "Next", 
         Action = ButtonAction
     }; 
 }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 public void UpdateCell(MenuView.MenuTableRow row)
 {
 }
コード例 #4
0
 public void SelectOption(MenuView.MenuTableRow row, MenuView.MenuTableOption option)
 {
 }