From 4cf9cd72047bbb5a1c83255721870d29bbdb03f7 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 8 Feb 2018 13:11:43 +0200 Subject: Added new tech tables.. --- .../Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs index e1166a9bc..3c83579ec 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs @@ -209,11 +209,11 @@ namespace Tango.MachineStudio.Developer.ViewModels set { _isSideBarOpened = value; RaisePropertyChangedAuto(); } } - private ObservableCollection _availableGraphs; + private ObservableCollection _availableGraphs; /// /// Gets or sets the available sensors. /// - public ObservableCollection AvailableGraphs + public ObservableCollection AvailableGraphs { get { return _availableGraphs; } set { _availableGraphs = value; RaisePropertyChangedAuto(); } @@ -475,7 +475,7 @@ namespace Tango.MachineStudio.Developer.ViewModels if (!this.DesignMode) { Adapter = ObservablesEntitiesAdapter.Instance; - AvailableGraphs = Adapter.Graphs.ToObservableCollection(); + AvailableGraphs = Adapter.TechMonitors.ToObservableCollection(); } Graphs = new ObservableCollection(); @@ -1124,7 +1124,7 @@ namespace Tango.MachineStudio.Developer.ViewModels /// Add sensor graph from available sensors to displayed graphs. /// /// The sensor. - public void OnDropAvailableGraph(Graph sensor) + public void OnDropAvailableGraph(TechMonitor sensor) { if (Graphs.Count < 8) { @@ -1208,7 +1208,7 @@ namespace Tango.MachineStudio.Developer.ViewModels /// The graph. public void RemoveGraph(IRealTimeGraph graph) { - var sensor = graph.Tag as Graph; + var sensor = graph.Tag as TechMonitor; _controllers.Remove(sensor.Name); graph.InnerGraph.Dispose(); Graphs.Remove(graph); -- cgit v1.3.1