Example #1
0
        public void SaveMenuEdit()
        {
            // Check we've got a valid edit model
            MenuEditModel editModel = MenuEditModel;

            if (editModel == null)
            {
                return;
            }

            // Get the updated action ids and update the settings, we'll update
            // the menu automatically when we get the settings changed event.
            var sm       = ServiceRegistration.Get <ISettingsManager>();
            var settings = sm.Load <NereusSkinSettings>();

            settings.HomeMenuActionIds = editModel.GetCurrentActionIds().ToArray();
            sm.Save(settings);
        }