aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/ConnectedMachineViewVM.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-07-29 13:03:22 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-07-29 13:03:22 +0300
commit86919dc24020229cbd1d8c59f29a4a36895f5b7a (patch)
treee0acd81cad23bbd0948978d76dc841d0553bcbcf /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/ConnectedMachineViewVM.cs
parentd62b12aab4f521ff287da135b6e66e92629a50dd (diff)
downloadTango-86919dc24020229cbd1d8c59f29a4a36895f5b7a.tar.gz
Tango-86919dc24020229cbd1d8c59f29a4a36895f5b7a.zip
Implemented diagnostics frame rate monitor on IDiagnosticsFrameProvider.
Added diagnostics frame rate to connected machine dialog. Implemented dynamic graphs max points using frame rate on tech board!. Implemented speed control on DIagnosticsFilePlayer & Data Capture module. Implemented graphs duration control on tech board.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/ConnectedMachineViewVM.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/ConnectedMachineViewVM.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/ConnectedMachineViewVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/ConnectedMachineViewVM.cs
index 8034ceb69..35a4b0e9d 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/ConnectedMachineViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/ConnectedMachineViewVM.cs
@@ -5,6 +5,7 @@ using System.Text;
using System.Threading.Tasks;
using Tango.BL.Entities;
using Tango.Core.Commands;
+using Tango.MachineStudio.Common.Diagnostics;
using Tango.MachineStudio.Common.Notifications;
using Tango.MachineStudio.Common.StudioApplication;
using Tango.SharedUI;
@@ -30,18 +31,28 @@ namespace Tango.MachineStudio.UI.ViewModels
public ConnectedMachineVMResult Result { get; set; }
+ private IDiagnosticsFrameProvider _diagnosticsFrameProvider;
+ public IDiagnosticsFrameProvider DiagnosticsFrameProvider
+ {
+ get { return _diagnosticsFrameProvider; }
+ set { _diagnosticsFrameProvider = value; RaisePropertyChangedAuto(); }
+ }
+
+
public RelayCommand DisconnectCommand { get; set; }
public RelayCommand UploadHardwareConfigurationCommand { get; set; }
public RelayCommand ResetCommand { get; set; }
- public ConnectedMachineViewVM(IStudioApplicationManager application)
+ public ConnectedMachineViewVM(IStudioApplicationManager application, IDiagnosticsFrameProvider frameProvider)
{
ApplicationManager = application;
DisconnectCommand = new RelayCommand(Disconnect);
UploadHardwareConfigurationCommand = new RelayCommand(UploadHardwareConfiguration);
ResetCommand = new RelayCommand(Reset);
+
+ DiagnosticsFrameProvider = frameProvider;
}
private void Reset()