diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-08 11:35:59 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-08 11:35:59 +0200 |
| commit | 781e923508aafa6d39c3d38f1b1d4664dedbb83d (patch) | |
| tree | c3c70585633827808002b04b7ff669a09216a6e3 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views | |
| parent | 84a74bd9ea68a3f913e733a470ec64d1f8f50424 (diff) | |
| download | Tango-781e923508aafa6d39c3d38f1b1d4664dedbb83d.tar.gz Tango-781e923508aafa6d39c3d38f1b1d4664dedbb83d.zip | |
Modified IO Table To Graphs. Starting to IO's to separate components...
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views')
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 1ef6928f5..9f0927c63 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:Io}"> + <DataTemplate DataType="{x:Type observables:Graph}"> <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 e9111c86c..3922d80b2 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 OnDropAvailableGraph(object sender, DropEventArgs e) { - if (e.Draggable.DataContext is Io) + if (e.Draggable.DataContext is Graph) { - _vm.OnDropAvailableGraph(e.Draggable.DataContext as Io); + _vm.OnDropAvailableGraph(e.Draggable.DataContext as Graph); } } |
