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 | |
| parent | 9fa564ba8bdc768425f979eba55c95c03efea09e (diff) | |
| download | Tango-7c88ea08fab6996af6632f2ab71ba770f1792a99.tar.gz Tango-7c88ea08fab6996af6632f2ab71ba770f1792a99.zip | |
Changed gradient resolution minimum to 40.
Diffstat (limited to 'Software')
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml | 2 | ||||
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs | 14 |
2 files changed, 10 insertions, 6 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml index 132f33849..87a1a361f 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml @@ -399,7 +399,7 @@ <DockPanel Margin="0 20 0 0" TextElement.FontSize="{StaticResource TangoDefaultFontSize}"> <TextBlock VerticalAlignment="Center">Gradient Resolution CM</TextBlock> - <touch:TouchNumericTextBox Minimum="10" Maximum="500" KeyboardContainer="{Binding ElementName=Container}" Value="{Binding Settings.GradientGenerationResolution}" Margin="0 0 100 0" DockPanel.Dock="Right" HorizontalAlignment="Right" Width="90"></touch:TouchNumericTextBox> + <touch:TouchNumericTextBox Minimum="40" Maximum="500" KeyboardContainer="{Binding ElementName=Container}" Value="{Binding Settings.GradientGenerationResolution}" Margin="0 0 100 0" DockPanel.Dock="Right" HorizontalAlignment="Right" Width="90"></touch:TouchNumericTextBox> </DockPanel> <DockPanel Margin="0 20 0 0" TextElement.FontSize="{StaticResource TangoDefaultFontSize}"> 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"; |
