Ejemplo n.º 1
0
        void AddMenuEntry(MenuEntry menuEntry)
        {
            var entries = ((IList)Dynamic.MenuEntries)
                          .Cast <object>()
                          .Concat(menuEntry.AsTimeSpinnerMenuEntry())
                          .ToList(MainMenuEntryType);

            ((object)Dynamic._primaryMenuCollection).AsDynamic()._entries = entries;
        }
Ejemplo n.º 2
0
        void AddSettingButton(MenuEntry settingButton)
        {
            settingButton.IsCenterAligned     = false;
            settingButton.DoesDrawLargeShadow = false;

            var buttons = (IList)((object)Dynamic._primaryMenuCollection).AsDynamic()._entries;

            buttons.Add(settingButton.AsTimeSpinnerMenuEntry());

            ((object)Dynamic._primaryMenuCollection).AsDynamic()._entries = buttons.ToList(MainMenuEntryType);
        }
Ejemplo n.º 3
0
        protected void AddMenuEntryAtIndex(int index, MenuEntry menuEntry)
        {
            var menuEntries = (IList)Dynamic.MenuEntries;

            menuEntries.Insert(index, menuEntry.AsTimeSpinnerMenuEntry());
        }