void LoadData() { var model = new LandingTableModel { Title = "Visual Editor", Description = "Make changes, no code needed", Image = "Images/visualEditorIcon" }; model.Selected += delegate { NavigationController.PushViewController(new VisualEditorViewController(), true); }; items.Add(model); model = new LandingTableModel { Title = "Live Variables", Description = "Change your users' experience", Image = "Images/liveVariablesIcon" }; model.Selected += delegate { NavigationController.PushViewController(new LiveVariablesViewController(), true); }; items.Add(model); model = new LandingTableModel { Title = "Code Blocks", Description = "Test entirely custom features", Image = "Images/codeBlocksIcon" }; model.Selected += delegate { NavigationController.PushViewController(new CodeBlocksViewController(), true); }; items.Add(model); Root = new RootElement("") { new Section { from post in items select new LandingTableModelElement(post) } }; }
public LandingTableModelElement(LandingTableModel model) : base(model.Title) { this.model = model; }