diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-07 16:23:25 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-07 16:23:25 +0200 |
| commit | b84ea5c89946d6e21ffa72f913cab3bec5f1d5c6 (patch) | |
| tree | 636bf429455566b241ea4301e541d10942e601af /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views | |
| parent | d27a0bac82a94b9f7cc380b03cc4c73012aaacd7 (diff) | |
| download | Tango-b84ea5c89946d6e21ffa72f913cab3bec5f1d5c6.tar.gz Tango-b84ea5c89946d6e21ffa72f913cab3bec5f1d5c6.zip | |
Filter available graphs by IO Type.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views')
2 files changed, 4 insertions, 4 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 f92f96160..cdfef3b0d 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 @@ -1789,7 +1789,7 @@ <TextBlock VerticalAlignment="Center" Margin="10 0 0 0" Foreground="DimGray" FontSize="16" FontWeight="SemiBold">AVAILABLE GRAPHS</TextBlock> </StackPanel> <ScrollViewer Margin="0 5 0 0" VerticalScrollBarVisibility="Auto"> - <ItemsControl Margin="0 0 5 0" ItemsSource="{Binding AvailableSensors}"> + <ItemsControl Margin="0 0 5 0" ItemsSource="{Binding AvailableGraphs}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <UniformGrid Columns="2" IsItemsHost="True"></UniformGrid> @@ -1815,7 +1815,7 @@ </Grid> <Grid> - <Grid Margin="0 0 10 0" Style="{StaticResource droppableGrid}" dragAndDrop:DragAndDropService.Drop="OnDropAvailableSensor"> + <Grid Margin="0 0 10 0" Style="{StaticResource droppableGrid}" dragAndDrop:DragAndDropService.Drop="OnDropAvailableGraph"> <Border> <ItemsControl ItemsSource="{Binding Graphs}"> <ItemsControl.ItemsPanel> 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 9a0a4dc0e..e9111c86c 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 @@ -104,11 +104,11 @@ namespace Tango.MachineStudio.Developer.Views } } - private void OnDropAvailableSensor(object sender, DropEventArgs e) + private void OnDropAvailableGraph(object sender, DropEventArgs e) { if (e.Draggable.DataContext is Io) { - _vm.OnDropAvailableSensor(e.Draggable.DataContext as Io); + _vm.OnDropAvailableGraph(e.Draggable.DataContext as Io); } } |
