Esempio n. 1
0
        string GetUSValue(MUserSettingInfo info)
        {
            var o = UserSettings?.FirstOrDefault(v => v.ID == info.USERSETTINGID);

            switch (info.VALUEID)
            {
            case 1: return(o?.VALUE1);

            case 2: return(o?.VALUE2);

            case 3: return(o?.VALUE3);

            case 4: return(o?.VALUE4);

            default: return(null);
            }
        }
Esempio n. 2
0
        void SetUSValue(MUserSettingInfo info, string value, string name)
        {
            var o = UserSettings?.FirstOrDefault(v => v.ID == info.USERSETTINGID);

            if (o == null)
            {
                return;
            }
            switch (info.VALUEID)
            {
            case 1: o.VALUE1 = value; break;

            case 2: o.VALUE2 = value; break;

            case 3: o.VALUE3 = value; break;

            case 4: o.VALUE4 = value; break;
            }
            this.RaisePropertyChanged(name);
        }
Esempio n. 3
0
 public async Task Update(MUserSettingInfo info, string v) =>
 Debug.WriteLine(await UpdateByUrl($"USERSETTINGS/{info.USERSETTINGID}", $"VALUE{info.VALUEID}={v}"));
Esempio n. 4
0
 public async Task Update(MUserSettingInfo info, int v) =>
 await Update(info, v.ToString());