Beispiel #1
0
        public async Task <bool> Save()
        {
            var idei = _settings as IDataErrorInfo;

            if (idei != null)
            {
                var error = idei.Error;
                if (!string.IsNullOrEmpty(error))
                {
                    await DialogService.Error(Resources.MontyNi, error);

                    return(false);
                }
            }

            await _engine.SaveSettings(_configurable.SettingName, _configurable.SerializeSettings());

            return(true);
        }
Beispiel #2
0
        private Task SaveSearchModel(MediaSearchModel searchModel)
        {
            var c = (IConfigurable)searchModel;

            return(_engine.SaveSettings(c.SettingName, c.SerializeSettings()));
        }