aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy.mail.net@gmail.com>2022-05-24 16:03:33 +0300
committerRoy Ben-Shabat <Roy.mail.net@gmail.com>2022-05-24 16:03:33 +0300
commitd63f3dcebd33aa7ea925dca33c63fc9994526c1b (patch)
tree05ba9875a598e8e9cb11785571109393a46546e4 /Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs
parentaf1b5b025b7f2e7d2d70ce02d7004c439325c9b3 (diff)
parent98b1a778572c2384ada8bd6b1ec799a8eb896d49 (diff)
downloadTango-d63f3dcebd33aa7ea925dca33c63fc9994526c1b.tar.gz
Tango-d63f3dcebd33aa7ea925dca33c63fc9994526c1b.zip
Merged PPC VFT
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs
index 59005509e..f057f2e73 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs
@@ -261,6 +261,14 @@ namespace Tango.PPC.MachineSettings.ViewModels
set { _enableProxy = value; RaisePropertyChangedAuto(); }
}
+ private int _manualFineTuningLength;
+ public int FineTuningLength
+ {
+ get { return _manualFineTuningLength; }
+ set { _manualFineTuningLength = value; RaisePropertyChangedAuto(); }
+ }
+
+
#endregion
#region Commands
@@ -317,6 +325,7 @@ namespace Tango.PPC.MachineSettings.ViewModels
Settings.SynchronizeDiagnostics = SynchronizeDiagnostics;
Settings.AutoCheckForUpdates = AutoCheckForUpdates;
Settings.LubricationLevels = LubricationLevels.Where(x => x.LubricationLevel != LubricationLevel.Standard).Select(x => x.ToRmlLubricationLevel()).ToList();
+ Settings.FineTuningTrialLengthMeters = FineTuningLength;
MachineDataSynchronizer.IsEnabled = SynchronizeJobs || SynchronizeDiagnostics;
@@ -519,6 +528,8 @@ namespace Tango.PPC.MachineSettings.ViewModels
LockScreenTimeoutMinutes = (int)Settings.LockScreenTimeout.TotalMinutes;
LockScreenPassword = Settings.LockScreenPassword;
+ FineTuningLength = Settings.FineTuningTrialLengthMeters;
+
SelectedJobTypes = new SelectedObjectCollection<JobTypes>(Enum.GetValues(typeof(JobTypes)).Cast<JobTypes>().ToObservableCollection(), Settings.SupportedJobTypes.ToObservableCollection());
SelectedColorSpaces = new SelectedObjectCollection<ColorSpaces>(Enum.GetValues(typeof(ColorSpaces)).Cast<ColorSpaces>().Where(x => x.IsUserSpace()).ToObservableCollection(), Settings.SupportedColorSpaces.ToObservableCollection());