aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2021-01-04 11:52:20 +0200
committerAvi Levkovich <avi@twine-s.com>2021-01-04 11:52:20 +0200
commit7c3e54578ae6f2c01ec05ebc7f7e0f873955bb33 (patch)
tree3eb92323c29633dde9df39666ece64815ff7da98 /Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs
parent6a2aa48d486a9f83449d7e2c5e85b62649763c49 (diff)
parentb0dc79e93c1a17667211bff5c7e48eb2d69ad386 (diff)
downloadTango-7c3e54578ae6f2c01ec05ebc7f7e0f873955bb33.tar.gz
Tango-7c3e54578ae6f2c01ec05ebc7f7e0f873955bb33.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
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.cs16
1 files changed, 16 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 f4bbf6da3..523934985 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
@@ -227,6 +227,13 @@ namespace Tango.PPC.MachineSettings.ViewModels
set { _lubricationLevels = value; RaisePropertyChangedAuto(); }
}
+ private RmlLubricationLevelSettings _selectedLubricationLevel;
+ public RmlLubricationLevelSettings SelectedLubricationLevel
+ {
+ get { return _selectedLubricationLevel; }
+ set { _selectedLubricationLevel = value; RaisePropertyChangedAuto(); }
+ }
+
#endregion
#region Commands
@@ -445,6 +452,15 @@ namespace Tango.PPC.MachineSettings.ViewModels
}
LubricationLevels = levels;
+
+ if (SelectedLubricationLevel != null)
+ {
+ SelectedLubricationLevel = LubricationLevels.FirstOrDefault(x => x.RmlGuid == SelectedLubricationLevel.RmlGuid);
+ }
+ else
+ {
+ SelectedLubricationLevel = LubricationLevels.FirstOrDefault();
+ }
}
catch (Exception ex)
{