diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-05 17:10:35 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-05 17:10:35 +0200 |
| commit | 4717b98b45c9e40e1329d3b49b91bfbd3feb50f6 (patch) | |
| tree | 681ac14996def4efa7b5c2cc2d3e773466045319 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs | |
| parent | ba49db54c7b94315a55bed9ae10fe06e7a65cd33 (diff) | |
| download | Tango-4717b98b45c9e40e1329d3b49b91bfbd3feb50f6.tar.gz Tango-4717b98b45c9e40e1329d3b49b91bfbd3feb50f6.zip | |
Optimized color conversion frequency on research module.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs index d96f130ae..8c58690fd 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs @@ -292,5 +292,25 @@ namespace Tango.MachineStudio.Developer.Views Keyboard.ClearFocus(); listBoxSegments.Focus(); } + + private void OnBrushStopFieldValueChanged(object sender, RoutedPropertyChangedEventArgs<double?> e) + { + BrushStop stop = null; + var dataContext = (sender as FrameworkElement).DataContext; + + if (dataContext != null) + { + if (dataContext is BrushStop) + { + stop = dataContext as BrushStop; + } + else + { + stop = (dataContext as LiquidVolume).BrushStop; + } + + _vm.OnBrushStopFieldValueChanged(stop); + } + } } } |
