diff options
| author | Roy <Roy.mail.net@gmail.com> | 2022-07-06 22:06:53 +0300 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2022-07-06 22:06:53 +0300 |
| commit | 7c88ea08fab6996af6632f2ab71ba770f1792a99 (patch) | |
| tree | b5a8c54dcde0ad18d0a41a83bff9bc6f4d3420c2 /Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs | |
| parent | 9fa564ba8bdc768425f979eba55c95c03efea09e (diff) | |
| download | Tango-7c88ea08fab6996af6632f2ab71ba770f1792a99.tar.gz Tango-7c88ea08fab6996af6632f2ab71ba770f1792a99.zip | |
Changed gradient resolution minimum to 40.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs index 2cf0e193a..fce1ce046 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs @@ -22,6 +22,8 @@ namespace Tango.PPC.Common /// <seealso cref="Tango.Settings.SettingsBase" /> public class PPCSettings : SettingsBase { + private int _gradientGenerationResolution; + /// <summary> /// Gets or sets the state of the application. /// </summary> @@ -105,7 +107,7 @@ namespace Tango.PPC.Common /// <summary> /// Gets or sets the gradient generation resolution. /// </summary> - public int GradientGenerationResolution { get; set; } + public int GradientGenerationResolution { get => Math.Max(40, _gradientGenerationResolution); set => _gradientGenerationResolution = value; } /// <summary> /// Gets or sets a value indicating whether to enable the application lock screen. @@ -215,7 +217,7 @@ namespace Tango.PPC.Common /// <summary> /// Gets or sets the automatic update check interval. /// </summary> - public TimeSpan AutoUpdateCheckInterval { get; set; } + public TimeSpan AutoUpdateCheckInterval { get; set; } /// <summary> /// Gets or sets a value indicating whether to enable the automatic thread loading support. @@ -308,9 +310,11 @@ namespace Tango.PPC.Common /// </summary> public bool UseJobsModuleV2 { get; set; } - public ColorSpaces? DefaultTabColorSpace { + public ColorSpaces? DefaultTabColorSpace + { get; - set; } + set; + } /// <summary> /// Gets or sets the fine tuning trial length in meters. @@ -335,7 +339,7 @@ namespace Tango.PPC.Common JobUploadStrategy = JobUploadStrategy.JobDescriptionFile; FineTuningTrialLengthMeters = 200; EnableGradientGeneration = true; - GradientGenerationResolution = 20; + GradientGenerationResolution = 40; MachineScanningTimeoutSeconds = 20; EmbeddedComPort = "COM10"; EmbeddedDeviceHint = "Tango USB Serial Port"; |
