aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-02-07 16:18:30 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-02-07 16:18:30 +0200
commitd27a0bac82a94b9f7cc380b03cc4c73012aaacd7 (patch)
treed60d43c48d9e8d151c3b85d00c7cdb7aea7ffb87 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views
parentbd63d7d2f7769e5534fb9a58d97358564c2cb674 (diff)
downloadTango-d27a0bac82a94b9f7cc380b03cc4c73012aaacd7.tar.gz
Tango-d27a0bac82a94b9f7cc380b03cc4c73012aaacd7.zip
Changes Sensors Table to IOS.
Added IO TYPE field for IOS Table.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml2
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs4
2 files changed, 3 insertions, 3 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml
index 820c5bb18..f92f96160 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml
@@ -1796,7 +1796,7 @@
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
- <DataTemplate DataType="{x:Type observables:Sensor}">
+ <DataTemplate DataType="{x:Type observables:Io}">
<Border dragAndDrop:DragAndDropService.Draggable="True" dragAndDrop:DragAndDropService.DraggingSurface="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=DraggingSurface}" Margin="5" CornerRadius="3" Height="120" BorderThickness="1" BorderBrush="Silver" ClipToBounds="True">
<Border.Background>
<ImageBrush ImageSource="../Images/line_graph.png" Stretch="Fill"></ImageBrush>
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs
index 1df4728d3..9a0a4dc0e 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs
@@ -106,9 +106,9 @@ namespace Tango.MachineStudio.Developer.Views
private void OnDropAvailableSensor(object sender, DropEventArgs e)
{
- if (e.Draggable.DataContext is Sensor)
+ if (e.Draggable.DataContext is Io)
{
- _vm.OnDropAvailableSensor(e.Draggable.DataContext as Sensor);
+ _vm.OnDropAvailableSensor(e.Draggable.DataContext as Io);
}
}