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-04-23 22:25:54 +0300
committerShlomo Hecht <shlomo@twine-s.com>2019-04-23 22:25:54 +0300
commitebcb9ce27131e4bbd14c96b5f897a67bc752aaeb (patch)
tree293aee8b1751ce7fce542645722c0f1a96b73097 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MachineTechViewVM.cs
parent52967e858bd52621208f6360e84f4c47ec435816 (diff)
parent636ad730569dfef1a4ee04c8d716d510bcc47ee1 (diff)
downloadTango-ebcb9ce27131e4bbd14c96b5f897a67bc752aaeb.tar.gz
Tango-ebcb9ce27131e4bbd14c96b5f897a67bc752aaeb.zip
merge alarm handling from remote
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.cs15
1 files changed, 7 insertions, 8 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 666a56704..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(),
@@ -1749,13 +1748,13 @@ namespace Tango.MachineStudio.Technician.ViewModels
/// <exception cref="NotImplementedException"></exception>
private void InitJobRunnerItem(JobRunnerItem item)
{
- item.StartJob += () =>
+ item.StartJob += async () =>
{
try
{
CheckMachineOperator();
- var handler = MachineOperator.Print(item.Job, item.ProcessParameters);
+ var handler = await MachineOperator.Print(item.Job, item.ProcessParameters);
item.JobHandler = handler;