private AppLevelModel() { FeedbackEmail = "*****@*****.**"; FeedbackAppName = "ZeeEventsManager"; GuestMenuForAllContacts = new ObservableCollection <MenuItem <AppLevelModel> >() { new MenuItem <AppLevelModel>(Q.Resources.AppLevel_MyContacts, "ImportAll") }; GuestMenuForEventContacts = new ObservableCollection <MenuItem <AppLevelModel> >() { new MenuItem <AppLevelModel>(Q.Resources.AppLevel_CurrentEvent, "ImportAll") }; Settings = new SettingsModel(this); NewContact = new NewContactItemModel(this); AllContacts = new MyContactsModel(this); Calendar = new CalendarModel(this); Calendar.CurrentDate = DateTime.Now; // Dynamically update viewmodel as necessary latestEventMenuItem = new MenuItem <AppLevelModel>( null, typeof(EventItemPage), null, GetLatestEventSetup, Q.Resources.AppLevel_LatestEvent, "GoToToday"); // Define top level menu, in required order TopLevelMenu.Add(new MenuItem <AppLevelModel>(Calendar, typeof(CalendarMonthPage))); TopLevelMenu.Add(latestEventMenuItem); TopLevelMenu.Add(new MenuItem <AppLevelModel>(AllContacts, typeof(MyContactsPage), null, AllContacts.NavigatedMainMenu)); TopLevelMenu.Add(new MenuItem <AppLevelModel>(Settings, typeof(SettingsPage))); // Set current date Calendar.CurrentDate = DateTime.Now; }
public virtual Menu MenuItemBy(params SearchCriteria[] path) { return(TopLevelMenu.Find(path)); }
public virtual Menu MenuItem(params string[] path) { return(TopLevelMenu.Find(path)); }