aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechGraphController.cs
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-05-03 10:08:08 +0300
committerShlomo Hecht <shlomo@twine-s.com>2019-05-03 10:08:08 +0300
commitec4baf29ede89bf4290f52578df517dc784cb71c (patch)
treeedfdf93b1394a15529ee28e57b2b31aa5044fa99 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechGraphController.cs
parent12aeb0e61bc3f177a9b85a6067d4909e925c8326 (diff)
parent0b593edbbd1ba4072d7a18a9395acdb5b8c21693 (diff)
downloadTango-ec4baf29ede89bf4290f52578df517dc784cb71c.tar.gz
Tango-ec4baf29ede89bf4290f52578df517dc784cb71c.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_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);
}
}
}