From ecf55f4193c0a7ab273c7e8243e446a2f2c32d51 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Sun, 16 Dec 2018 08:22:45 +0200 Subject: Working on PPC tech mode & logging module. Working on PPC date picker & calendar. Implemented no-permissions view. --- .../PPC/Tango.PPC.Common/PPCModuleBase.cs | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs index 316236626..5aa003c1e 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs @@ -17,6 +17,16 @@ namespace Tango.PPC.Common /// public abstract class PPCModuleBase : ExtendedObject, IPPCModule { + private bool _isVisibleInMenu = true; + /// + /// Gets a value indicating whether this module should be displayed in the application menu. + /// + public bool IsVisibleInMenu + { + get { return _isVisibleInMenu; } + protected set { _isVisibleInMenu = value; RaisePropertyChangedAuto(); } + } + /// /// Gets the module name. /// @@ -46,5 +56,21 @@ namespace Tango.PPC.Common /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// public abstract void Dispose(); + + /// + /// Called when the application has entered the technician mode. + /// + public virtual void OnTechnicianEntered() + { + + } + + /// + /// Called when the application has exited the technician mode. + /// + public virtual void OnTechnicianExited() + { + + } } } -- cgit v1.3.1