public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender) { if (segue.Identifier == "Show New Order Detail Segue") { var destination = segue.DestinationViewController as OrderDetailViewController; if (destination is null) { return; } var indexPath = TableView.IndexPathForSelectedRow; if (indexPath is null) { return; } var orderType = new OrderDetailTableConfiguration(OrderDetailTableConfiguration.OrderTypeEnum.New); var newOrder = new Order(0, MenuItems[indexPath.Row], new NSMutableSet <MenuItemOption>()); destination.Configure(orderType, newOrder, null); } }
public void Configure(OrderDetailTableConfiguration tableConfiguration, Order order, VoiceShortcutDataManager voiceShortcutDataManager) { TableConfiguration = tableConfiguration; Order = order; VoiceShortcutDataManager = voiceShortcutDataManager; }