public static void SaveSetting(SettingModel setting) { var json = JsonSerializer.Serialize(setting); var enc = new Encrypt(); var sec = enc.Encode(json); ConfigRegister.Current["Settings"] = sec; }
public static SettingModel Migration(SettingModel value) { if (value.Device1LanguageCode == null) { value.Device1LanguageCode = "ja-JP"; } if (value.Device2LanguageCode == null) { value.Device2LanguageCode = "ja-JP"; } if (value.RecordingFilesPath == null) { value.RecordingFilesPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "TalkLogger"); } return(value); }