aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-01-02 08:47:29 +0200
committerShlomo Hecht <shlomo@twine-s.com>2019-01-02 08:47:29 +0200
commit520e878bf98efcec9c75abcfe483175ff72620a2 (patch)
tree62a7221e3c22187821f6a5e399eca0f7bd31168a /Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs
parent30574fe4a6e1bb4f60a43e9000acaf919811689a (diff)
parent25f5e6ddef7ef2fa0a747305847eeb4ceee5a2c9 (diff)
downloadTango-520e878bf98efcec9c75abcfe483175ff72620a2.tar.gz
Tango-520e878bf98efcec9c75abcfe483175ff72620a2.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
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()
+ {
+
+ }
}
}