aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.SharedUI/Controls
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-09-05 15:08:10 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-09-05 15:08:10 +0300
commit3c717c1430b17c479e3ccbf3715512f9b4334c53 (patch)
tree750904e077a23852e2838474dd203973b8d6c32b /Software/Visual_Studio/Tango.SharedUI/Controls
parent332be5196027097bcd6c0ffb8f988f1493c5437c (diff)
downloadTango-3c717c1430b17c479e3ccbf3715512f9b4334c53.tar.gz
Tango-3c717c1430b17c479e3ccbf3715512f9b4334c53.zip
Optimized use of color conversion in machine studio.
Improved color conversion memory leak. Added dispenser step division to brush stops. Machine Studio 3.4.43
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI/Controls')
-rw-r--r--Software/Visual_Studio/Tango.SharedUI/Controls/NavigationControl.cs15
1 files changed, 11 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/Controls/NavigationControl.cs b/Software/Visual_Studio/Tango.SharedUI/Controls/NavigationControl.cs
index d7af7200e..5ef543347 100644
--- a/Software/Visual_Studio/Tango.SharedUI/Controls/NavigationControl.cs
+++ b/Software/Visual_Studio/Tango.SharedUI/Controls/NavigationControl.cs
@@ -141,7 +141,8 @@ namespace Tango.SharedUI.Controls
public interface INavigationView
{
- void OnNavigated();
+ void OnNavigatedTo();
+ void OnNavigatedFrom();
}
#endregion
@@ -388,10 +389,16 @@ namespace Tango.SharedUI.Controls
{
completed = true;
- INavigationView navigationView = toElement.Element as INavigationView;
- if (navigationView != null)
+ INavigationView fromNavigationView = fromElement.Element as INavigationView;
+ INavigationView toNavigationView = toElement.Element as INavigationView;
+
+ if (fromNavigationView != null)
+ {
+ fromNavigationView.OnNavigatedFrom();
+ }
+ if (toNavigationView != null)
{
- navigationView.OnNavigated();
+ toNavigationView.OnNavigatedTo();
}
INavigationViewModel fromVM = fromElement.Element.DataContext as INavigationViewModel;