aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-07-25 14:03:04 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-07-25 14:03:04 +0300
commit064a839e731d7d96922b468330fab5c065609a01 (patch)
tree6682a9c7323868651864f0dde0b1e3f6fbb7f8fb /Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs
parent8f83b5cedf2a0af57836e2db227d88b50e612cb1 (diff)
downloadTango-064a839e731d7d96922b468330fab5c065609a01.tar.gz
Tango-064a839e731d7d96922b468330fab5c065609a01.zip
Implemented graphs auto range, pause & clear in tech board module.
Diffstat (limited to 'Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs')
-rw-r--r--Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs b/Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs
index 2f911a6c4..7cd7f74f1 100644
--- a/Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs
+++ b/Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs
@@ -132,6 +132,15 @@ namespace RealTimeGraphEx.FastGraphs
{
var pointsCollection = _graphController.GetAndClearAllPoints();
+ if (_useAutoRange && pointsCollection.Count > 0)
+ {
+ Dispatcher.Invoke(() =>
+ {
+ Maximum = pointsCollection.SelectMany(x => x).Concat(_graphPolygons.SelectMany(x => x.GetPoints())).Max();
+ Minimum = pointsCollection.SelectMany(x => x).Concat(_graphPolygons.SelectMany(x => x.GetPoints())).Min();
+ });
+ }
+
if (!_isPaused)
{