aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2018-12-16 08:22:45 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2018-12-16 08:22:45 +0200
commitecf55f4193c0a7ab273c7e8243e446a2f2c32d51 (patch)
treeaa965e23ba3d0dcd4fecf739b4ed95040553b628 /Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs
parentb279560f0b4dfdd16dea6b70975dfc1961b8d61e (diff)
downloadTango-ecf55f4193c0a7ab273c7e8243e446a2f2c32d51.tar.gz
Tango-ecf55f4193c0a7ab273c7e8243e446a2f2c32d51.zip
Working on PPC tech mode & logging module.
Working on PPC date picker & calendar. Implemented no-permissions view.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs26
1 files changed, 26 insertions, 0 deletions
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
/// <seealso cref="Tango.MachineStudio.Common.IStudioModule" />
public abstract class PPCModuleBase : ExtendedObject, IPPCModule
{
+ private bool _isVisibleInMenu = true;
+ /// <summary>
+ /// Gets a value indicating whether this module should be displayed in the application menu.
+ /// </summary>
+ public bool IsVisibleInMenu
+ {
+ get { return _isVisibleInMenu; }
+ protected set { _isVisibleInMenu = value; RaisePropertyChangedAuto(); }
+ }
+
/// <summary>
/// Gets the module name.
/// </summary>
@@ -46,5 +56,21 @@ namespace Tango.PPC.Common
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
/// </summary>
public abstract void Dispose();
+
+ /// <summary>
+ /// Called when the application has entered the technician mode.
+ /// </summary>
+ public virtual void OnTechnicianEntered()
+ {
+
+ }
+
+ /// <summary>
+ /// Called when the application has exited the technician mode.
+ /// </summary>
+ public virtual void OnTechnicianExited()
+ {
+
+ }
}
}