Created
May 22, 2012 19:12
-
-
Save jmarnold/2771024 to your computer and use it in GitHub Desktop.
Navigation Fun
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class OurNavigationRegistry : NavigationRegistry | |
{ | |
public OurNavigationRegistry() | |
{ | |
ForMenu(NavigationKeys.Main); | |
Add += MenuNode.ForAction<CurrentController>(NavigationKeys.Current, x => x.Index(null)); | |
Add += MenuNode.ForAction<FutureController>(NavigationKeys.Future, x => x.get_futures(null)); | |
Add += MenuNode.ForAction<HistoryController>(NavigationKeys.Historical, x => x.get_history_view(null)); | |
Add += MenuNode.ForAction<ContactsController>(NavigationKeys.Contacts, x => x.get_contacts_list(null)); | |
Add += MenuNode.ForAction<SettingsController>(NavigationKeys.Settings, x => x.Index(null)); | |
Add += MenuNode.ForInput(NavigationKeys.Logout, new LogoutRequest()); | |
ForMenu(NavigationKeys.Scheduling); | |
Add += MenuNode.ForAction<CurrentController>(NavigationKeys.Current, x => x.Index(null)).Icon("glyphicons/inverted/glyphicons_054_clock.png"); | |
Add += MenuNode.ForAction<FutureController>(NavigationKeys.Future, x => x.get_futures(null)).Icon("glyphicons/inverted/glyphicons_083_random.png"); | |
ForMenu(NavigationKeys.Analytics); | |
Add += MenuNode.ForAction<AnalyticsController>(NavigationKeys.Dashboard, x => x.get_analytics_dashboard(null)) | |
.Icon("glyphicons/inverted/glyphicons_040_stats.png"); | |
ForMenu(NavigationKeys.OtherMobile); | |
Add += MenuNode.ForAction<ContactsController>(NavigationKeys.Contacts, x => x.get_contacts_list(null)) | |
.Icon("glyphicons/inverted/glyphicons_043_group.png"); | |
Add += MenuNode.ForInput(NavigationKeys.InviteColleagues, new StandinInput(){ | |
Title = "Invite Colleagues" | |
}) | |
.Icon("glyphicons/inverted/glyphicons_124_message_plus.png"); | |
Add += MenuNode.ForInput(NavigationKeys.MyAccount, new StandinInput(){ | |
Title = "My Account" | |
}) | |
.Icon("glyphicons/inverted/glyphicons_280_settings.png"); | |
Add += MenuNode.ForInput(NavigationKeys.Help, new StandinInput(){ | |
Title = "Help" | |
}) | |
.Icon("glyphicons/inverted/glyphicons_194_circle_question_mark.png"); | |
Add += MenuNode.ForInput(NavigationKeys.About, new StandinInput{ | |
Title = "About" | |
}) | |
.Icon("logo-icon.png"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment