Loading INAF.Apps.Uwp.SLabDataManager/Assets/xml/remoteoperations.xml +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ <operation type="GetSampleDataValues">Materials/GetSampleDataValues</operation> <!-- USER SETTINGS --> <operation type="GetFitFunctions">UserSettings/GetFitFunctions</operation> <operation type="GetUserSettings">UserSettings/GetUserSetting</operation> <operation type="GetUserSetting">UserSettings/GetUserSetting</operation> <operation type="GetUserSettingsByWildcard">UserSettings/GetUserSettingsByWildcard</operation> <operation type="SetUserSetting">UserSettings/SetUserSetting</operation> <!-- EXTSERVICES --> Loading INAF.Apps.Uwp.SLabDataManager/Package.appxmanifest +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ <Identity Name="INAF.Apps.Uwp.SLabDataManager" Publisher="CN=INAF-IAPS, O=INAF, C=IT" Version="1.0.30.0" /> Version="1.0.31.0" /> <mp:PhoneIdentity PhoneProductId="07F38165-05DE-4ED7-8514-60D1E8CDCBFE" PhonePublisherId="00000000-0000-0000-0000-000000000000"/> Loading INAF.Apps.Uwp.SLabDataManager/ViewModels/ChartBaseViewModel.cs +1 −1 Original line number Diff line number Diff line Loading @@ -131,7 +131,7 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels foreach (var colorResponse in colorsResponse.Responses) { string key = colorResponse.Key.Replace("_", string.Empty).ToLowerInvariant(); settingsHelper.save(key, colorResponse.Value); settingsHelper.save(key, string.Join(string.Empty, "#FF", colorResponse.Value)); } } #endregion Loading INAF.Apps.Uwp.SLabDataManager/ViewModels/MainViewModel.cs +2 −0 Original line number Diff line number Diff line Loading @@ -808,6 +808,8 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels logger.Write<MainViewModel>($"Saving spectrum: {spectrum.Filename}", Serilog.Events.LogEventLevel.Information); var remoteOperationsManager = serviceProvider.GetRequiredService<RemoteOperationsManager>(); /* required for saving on cloud the spectrum */ spectrum.setPointsFromElements(); SaveSpectrumOfTypeRawRequestModel saveSpectrumRequest = new SaveSpectrumOfTypeRawRequestModel() { SpectrumFile = spectrum.ToSpectrumFile(), Loading INAF.Apps.Uwp.SLabDataManager/ViewModels/SettingsViewModel.cs +1 −0 Original line number Diff line number Diff line Loading @@ -152,6 +152,7 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels public async Task saveColorForSpectrumAsync(string hexcolor) { hexcolor = hexcolor.Substring(3, hexcolor.Length - 3); // remove the starting #FF which cause misleading reading in webapp. var remoteOperationsManager = serviceProvider.GetRequiredService<RemoteOperationsManager>(); var genericResponseModel = await remoteOperationsManager.setUserSettingAsync(new KeyValueRequestModel() { Key = selectedSpectrumType.Type.ToColorKeyForCloud(), Value = hexcolor }); settingsHelper.save(selectedSpectrumType.Type.ToColorKey(), hexcolor); Loading Loading
INAF.Apps.Uwp.SLabDataManager/Assets/xml/remoteoperations.xml +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ <operation type="GetSampleDataValues">Materials/GetSampleDataValues</operation> <!-- USER SETTINGS --> <operation type="GetFitFunctions">UserSettings/GetFitFunctions</operation> <operation type="GetUserSettings">UserSettings/GetUserSetting</operation> <operation type="GetUserSetting">UserSettings/GetUserSetting</operation> <operation type="GetUserSettingsByWildcard">UserSettings/GetUserSettingsByWildcard</operation> <operation type="SetUserSetting">UserSettings/SetUserSetting</operation> <!-- EXTSERVICES --> Loading
INAF.Apps.Uwp.SLabDataManager/Package.appxmanifest +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ <Identity Name="INAF.Apps.Uwp.SLabDataManager" Publisher="CN=INAF-IAPS, O=INAF, C=IT" Version="1.0.30.0" /> Version="1.0.31.0" /> <mp:PhoneIdentity PhoneProductId="07F38165-05DE-4ED7-8514-60D1E8CDCBFE" PhonePublisherId="00000000-0000-0000-0000-000000000000"/> Loading
INAF.Apps.Uwp.SLabDataManager/ViewModels/ChartBaseViewModel.cs +1 −1 Original line number Diff line number Diff line Loading @@ -131,7 +131,7 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels foreach (var colorResponse in colorsResponse.Responses) { string key = colorResponse.Key.Replace("_", string.Empty).ToLowerInvariant(); settingsHelper.save(key, colorResponse.Value); settingsHelper.save(key, string.Join(string.Empty, "#FF", colorResponse.Value)); } } #endregion Loading
INAF.Apps.Uwp.SLabDataManager/ViewModels/MainViewModel.cs +2 −0 Original line number Diff line number Diff line Loading @@ -808,6 +808,8 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels logger.Write<MainViewModel>($"Saving spectrum: {spectrum.Filename}", Serilog.Events.LogEventLevel.Information); var remoteOperationsManager = serviceProvider.GetRequiredService<RemoteOperationsManager>(); /* required for saving on cloud the spectrum */ spectrum.setPointsFromElements(); SaveSpectrumOfTypeRawRequestModel saveSpectrumRequest = new SaveSpectrumOfTypeRawRequestModel() { SpectrumFile = spectrum.ToSpectrumFile(), Loading
INAF.Apps.Uwp.SLabDataManager/ViewModels/SettingsViewModel.cs +1 −0 Original line number Diff line number Diff line Loading @@ -152,6 +152,7 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels public async Task saveColorForSpectrumAsync(string hexcolor) { hexcolor = hexcolor.Substring(3, hexcolor.Length - 3); // remove the starting #FF which cause misleading reading in webapp. var remoteOperationsManager = serviceProvider.GetRequiredService<RemoteOperationsManager>(); var genericResponseModel = await remoteOperationsManager.setUserSettingAsync(new KeyValueRequestModel() { Key = selectedSpectrumType.Type.ToColorKeyForCloud(), Value = hexcolor }); settingsHelper.save(selectedSpectrumType.Type.ToColorKey(), hexcolor); Loading