aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-04-23 16:13:41 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-04-23 16:13:41 +0300
commitba4aec4c691476d68b3da383a70bff42341c7171 (patch)
treecff1ec9b2b4c6bc09ceb4d2a7a64f8cf1e6a8fc0 /Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs
parent2c48f9ef5ee4978f531e18d0c5945f33705bfe46 (diff)
downloadTango-ba4aec4c691476d68b3da383a70bff42341c7171.tar.gz
Tango-ba4aec4c691476d68b3da383a70bff42341c7171.zip
Implemented screen lock for PPC.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs
index 777083b67..883d3f893 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs
@@ -42,6 +42,13 @@ namespace Tango.PPC.UI.Views
_timer = new DispatcherTimer();
_timer.Interval = TimeSpan.FromSeconds(10);
_timer.Tick += _timer_Tick;
+
+ this.PreviewMouseUp += LayoutView_PreviewMouseUp;
+ }
+
+ private void LayoutView_PreviewMouseUp(object sender, MouseButtonEventArgs e)
+ {
+ _vm.ApplicationManager.ResetScreenLockTimer();
}
private void _timer_Tick(object sender, EventArgs e)
@@ -77,5 +84,10 @@ namespace Tango.PPC.UI.Views
_timer.Stop();
}
+
+ private void Grid_PreviewMouseUp(object sender, MouseButtonEventArgs e)
+ {
+ _vm.ApplicationManager.ReleaseScreenLock();
+ }
}
}