public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { try { UIViewController nextController = null; switch (indexPath.Row) { case 0: nextController = new RssFeedViewController(marketFeed, "Market Insights"); break; case 1: nextController = new RssFeedViewController(newsFeed, "Russell Newsroom"); break; case 4: nextController = new RssFeedViewController(twitterFeed, "Twitter"); break; case 2: nextController = new PageViewController(usIndexes, "US Indexes"); break; case 3: nextController = new PageViewController(globalIndexes, "Global Indexes"); break; default: break; } if (nextController != null) controller.NavigationController.PushViewController(nextController, true); } catch (Exception ex) { Console.WriteLine(ex.Message); } }
public FeedItemTableViewDelegate(RssFeedViewController controller, IList<FeedItem> items) { this.controller = controller; this.items = items; }