Esempio n. 1
0
        internal void SetSetting(SettingBase Setting)
        {
            switch (Setting.Type)
            {
            case SettingType.Integer:
                ServiceClient.SetIntegerSetting(Setting.Name, ((SettingInteger)Setting).Value, _token);
                break;

            case SettingType.String:
                ServiceClient.SetStringSetting(Setting.Name, ((SettingString)Setting).Value, _token);
                break;

            case SettingType.Boolean:
                ServiceClient.SetBooleanSetting(Setting.Name, ((SettingBoolean)Setting).Value ? "true" : "false", _token);
                break;

            default:
                break;
            }
            UpdateSettings(true);
        }