aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MachineTechViewVM.cs
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-05-05 10:31:06 +0300
committerShlomo Hecht <shlomo@twine-s.com>2019-05-05 10:31:06 +0300
commit79bd7bb6a22f1da1a77fcc3f527a0955028f2447 (patch)
tree3e1c30dbbf7b6ccf70aa5631ad2f42ee356b4e25 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MachineTechViewVM.cs
parent4129b6caa72f8bafeeefe1a4a88a0d5e1568e245 (diff)
parent661c55343a468a9c150e8d163711567f89a02889 (diff)
downloadTango-79bd7bb6a22f1da1a77fcc3f527a0955028f2447.tar.gz
Tango-79bd7bb6a22f1da1a77fcc3f527a0955028f2447.zip
merge tpf
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MachineTechViewVM.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MachineTechViewVM.cs11
1 files changed, 5 insertions, 6 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MachineTechViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MachineTechViewVM.cs
index e78047563..72e43d7b0 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MachineTechViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MachineTechViewVM.cs
@@ -1,6 +1,5 @@
using Google.Protobuf.Collections;
using Microsoft.Win32;
-using RealTimeGraphEx.Controllers;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
@@ -36,9 +35,9 @@ using Tango.MachineStudio.Technician.Models;
using Tango.Logging;
using Microsoft.WindowsAPICodePack.Dialogs;
using RealTimeGraphX;
-using RealTimeGraphX.WPF.DataSeries;
using RealTimeGraphX.DataPoints;
using Tango.MachineStudio.Technician.Views;
+using RealTimeGraphX.WPF;
namespace Tango.MachineStudio.Technician.ViewModels
{
@@ -1024,7 +1023,7 @@ namespace Tango.MachineStudio.Technician.ViewModels
var editor = element as SingleGraphElementEditor;
TechGraphController controller = new TechGraphController();
- controller.AddDataSeries(new WpfDataSeries()
+ controller.DataSeriesCollection.Add(new WpfGraphDataSeries()
{
Stroke = Colors.DodgerBlue,
});
@@ -1043,7 +1042,7 @@ namespace Tango.MachineStudio.Technician.ViewModels
for (int i = 0; i < graphItem.TechMonitor.ChannelCount; i++)
{
- controller.AddDataSeries(new WpfDataSeries()
+ controller.DataSeriesCollection.Add(new WpfGraphDataSeries()
{
Stroke = ColorHelper.GetRandomColor(),
Name = graphItem.TechMonitor.Name.First() + (i + 1).ToString(),
@@ -1437,7 +1436,7 @@ namespace Tango.MachineStudio.Technician.ViewModels
controller.Range.MaximumY = item.TechMonitor.Max;
controller.Range.MaximumX = TimeSpan.FromSeconds(10);
- controller.AddDataSeries(new WpfDataSeries()
+ controller.DataSeriesCollection.Add(new WpfGraphDataSeries()
{
Stroke = Colors.DodgerBlue,
});
@@ -1498,7 +1497,7 @@ namespace Tango.MachineStudio.Technician.ViewModels
for (int i = 0; i < item.TechMonitor.ChannelCount; i++)
{
- controller.AddDataSeries(new WpfDataSeries()
+ controller.DataSeriesCollection.Add(new WpfGraphDataSeries()
{
Stroke = ColorHelper.GetRandomColor(),
Name = item.TechMonitor.Name.First() + (i + 1).ToString(),