aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/ViewModels/GeneralGuideViewVM.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-11-19 10:20:19 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-11-19 10:20:19 +0200
commit926844ac021bf0e95aa087ec9bf0a4444b3dabc7 (patch)
tree03cbf727699aff157d3fa77abc2f2d836469b63b /Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/ViewModels/GeneralGuideViewVM.cs
parent17df7aa5142e7336cdab3f5551ccd3fa66ce7c87 (diff)
downloadTango-926844ac021bf0e95aa087ec9bf0a4444b3dabc7.tar.gz
Tango-926844ac021bf0e95aa087ec9bf0a4444b3dabc7.zip
Added related animations to guides on PPC.
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/ViewModels/GeneralGuideViewVM.cs')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/ViewModels/GeneralGuideViewVM.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/ViewModels/GeneralGuideViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/ViewModels/GeneralGuideViewVM.cs
index 1149da103..fd0475817 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/ViewModels/GeneralGuideViewVM.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/ViewModels/GeneralGuideViewVM.cs
@@ -10,6 +10,8 @@ namespace Tango.PPC.Maintenance.ViewModels
{
public class GeneralGuideViewVM : PPCViewModel, INavigationObjectReceiver<GuideBase>
{
+ private DateTime _lastTime;
+
private GuideBase _guide;
public GuideBase Guide
{
@@ -20,14 +22,19 @@ namespace Tango.PPC.Maintenance.ViewModels
public override void OnApplicationStarted()
{
-
+ _lastTime = DateTime.Now;
}
public void OnNavigatedToWithObject(GuideBase guide)
{
- guide.Steps.ForEach(x => x.IsChecked = false);
+ if (Guide != guide || (DateTime.Now - _lastTime) > TimeSpan.FromHours(1))
+ {
+ guide.Steps.ForEach(x => x.IsChecked = false);
+ }
Guide = guide;
+
+ _lastTime = DateTime.Now;
}
}
}