aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechGraphController.cs
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2019-04-17 12:28:59 +0300
committerAvi Levkovich <avi@twine-s.com>2019-04-17 12:28:59 +0300
commitb8489b32eb989c7aa81ec01ad558ccfb7674389c (patch)
treefc676997551d4d0dd23242340589ba026a18db16 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechGraphController.cs
parent8f8bae1c76df24a33d972145182335a84eb55c8d (diff)
parent028e41fc21fecee05c8db707382db586b26e6537 (diff)
downloadTango-b8489b32eb989c7aa81ec01ad558ccfb7674389c.tar.gz
Tango-b8489b32eb989c7aa81ec01ad558ccfb7674389c.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechGraphController.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechGraphController.cs15
1 files changed, 3 insertions, 12 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechGraphController.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechGraphController.cs
index 28c75f79f..ca132095c 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechGraphController.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechGraphController.cs
@@ -1,8 +1,7 @@
using RealTimeGraphX;
using RealTimeGraphX.DataPoints;
using RealTimeGraphX.Renderers;
-using RealTimeGraphX.WPF.DataSeries;
-using RealTimeGraphX.WPF.Painters;
+using RealTimeGraphX.WPF;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -11,19 +10,11 @@ using System.Threading.Tasks;
namespace Tango.MachineStudio.Technician
{
- public class TechGraphController : GraphControllerBase<WpfDataSeries, TimeSpanDataPoint, DoubleDataPoint>
+ public class TechGraphController : WpfGraphController<TimeSpanDataPoint, DoubleDataPoint>
{
public TechGraphController(int refreshRate = 50)
{
- var renderer = new GraphScrollingRenderer<WpfDataSeries, TimeSpanDataPoint, DoubleDataPoint>()
- {
- RefreshRate = TimeSpan.FromMilliseconds(refreshRate)
- };
-
- var painter = new WpfScrollingGraphPainter();
-
- ConnectOutput(renderer);
- renderer.ConnectOutput(painter);
+ RefreshRate = TimeSpan.FromMilliseconds(50);
}
}
}