aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-12-05 17:10:35 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-12-05 17:10:35 +0200
commit4717b98b45c9e40e1329d3b49b91bfbd3feb50f6 (patch)
tree681ac14996def4efa7b5c2cc2d3e773466045319 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs
parentba49db54c7b94315a55bed9ae10fe06e7a65cd33 (diff)
downloadTango-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.cs20
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);
+ }
+ }
}
}