aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/BrowserModule.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2019-12-12 22:12:17 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2019-12-12 22:12:17 +0200
commit791ecdccc3d9ecc6311d6b1440e462119e65dc92 (patch)
tree2ed363a38e5a823f83f32042266e45fdbcc3220a /Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/BrowserModule.cs
parent5e705b938989409332ac929e1319b398b5a930a5 (diff)
downloadTango-791ecdccc3d9ecc6311d6b1440e462119e65dc92.tar.gz
Tango-791ecdccc3d9ecc6311d6b1440e462119e65dc92.zip
Improvements on browser module.
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/BrowserModule.cs')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/BrowserModule.cs16
1 files changed, 15 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/BrowserModule.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/BrowserModule.cs
index a73700fef..4da2f4f98 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/BrowserModule.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/BrowserModule.cs
@@ -8,6 +8,8 @@ using Tango.BL.Enumerations;
using Tango.PPC.Common;
using Tango.PPC.Browser.Views;
using Tango.SharedUI.Helpers;
+using Tango.Core.DI;
+using Tango.PPC.Common.Application;
namespace Tango.PPC.Browser
{
@@ -23,7 +25,7 @@ namespace Tango.PPC.Browser
/// </summary>
public BrowserModule()
{
- IsVisibleInMenu = true;
+ IsVisibleInMenu = false;
}
/// <summary>
@@ -81,6 +83,18 @@ namespace Tango.PPC.Browser
}
}
+ public override void OnTechnicianEntered()
+ {
+ base.OnTechnicianEntered();
+ IsVisibleInMenu = true;
+ }
+
+ public override void OnTechnicianExited()
+ {
+ base.OnTechnicianExited();
+ IsVisibleInMenu = false;
+ }
+
/// <summary>
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
/// </summary>