public RootViewController () : base(null)
		{
			songs = new SongsViewController ();
			Root = new RootElement ("The best App ever!") {
				new Section ("") {
					new StringElement ("Contacts", () => ActivateController (new ContactsViewController ())),
					new StringElement ("Songs", () => ActivateController (songs)),
					new StringElement("Todo Items",()=> ActivateController(new TodoViewController())),
				}
			};
		}
Exemplo n.º 2
0
 public RootViewController() : base(null)
 {
     songs = new SongsViewController();
     Root  = new RootElement("The best App ever!")
     {
         new Section("")
         {
             new StringElement("Contacts", () => ActivateController(new ContactsViewController())),
             new StringElement("Songs", () => ActivateController(songs)),
             new StringElement("Todo Items", () => ActivateController(new TodoViewController())),
         }
     };
 }