aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2021-01-01 02:48:32 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2021-01-01 02:48:32 +0200
commit3df1dc3b608bbbb67d6c46bba13bc657f76c0ddd (patch)
tree4b7f641dbb70d34fabb611fb8007c4df9bfeec31 /Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels
parent16ea69e5fc0277b5011a42da4fd6c749f9a6daec (diff)
downloadTango-3df1dc3b608bbbb67d6c46bba13bc657f76c0ddd.tar.gz
Tango-3df1dc3b608bbbb67d6c46bba13bc657f76c0ddd.zip
Several bug fixes
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels')
-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)
{