Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public virtual Menu MenuItemBy(params SearchCriteria[] path)
 {
     return(TopLevelMenu.Find(path));
 }
Ejemplo n.º 3
0
 public virtual Menu MenuItem(params string[] path)
 {
     return(TopLevelMenu.Find(path));
 }