aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-12-06 09:53:33 +0200
committerShlomo Hecht <shlomo@twine-s.com>2018-12-06 09:53:33 +0200
commit49e8314fb6af9b6c0d92ec2d7ede910e69fe4dd0 (patch)
tree4d07d48869d20be03f1291f1034ea51b99c81207 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs
parent2b90a28086d59563e8694def75e7413f08330ea9 (diff)
parent59f73fdea8ec23aa6c5482289f9acf96079affc3 (diff)
downloadTango-49e8314fb6af9b6c0d92ec2d7ede910e69fe4dd0.tar.gz
Tango-49e8314fb6af9b6c0d92ec2d7ede910e69fe4dd0.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
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);
+ }
+ }
}
}