diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-12-15 01:09:46 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-12-15 01:09:46 +0200 |
| commit | 4cabb5aabc490156b50cd02592926539d48a7af8 (patch) | |
| tree | 0458fd87417eb06a89c1b15e65d1e0368518fd95 /Software/Visual_Studio/PPC/Tango.PPC.UI/InternalModule.cs | |
| parent | 51151796efb23162ca0b3d6701d90dfb6d3baeb9 (diff) | |
| download | Tango-4cabb5aabc490156b50cd02592926539d48a7af8.tar.gz Tango-4cabb5aabc490156b50cd02592926539d48a7af8.zip | |
Implmented InternalModule navigation for PPC.
Fixed issue with TangoIOC.GetAllInstancedByBase.
Implemented PowerOff Screen.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/InternalModule.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/InternalModule.cs | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/InternalModule.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/InternalModule.cs new file mode 100644 index 000000000..e960fa020 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/InternalModule.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Media.Imaging; +using Tango.BL.Enumerations; +using Tango.PPC.Common; +using Tango.PPC.UI.Views; + +namespace Tango.PPC.UI +{ + [PPCModule(100)] + public class InternalModule : PPCModuleBase + { + public InternalModule() + { + IsVisibleInMenu = false; + } + + /// <summary> + /// Gets the module name. + /// </summary> + public override string Name + { + get + { + return "Internal"; + } + } + + /// <summary> + /// Gets the module description. + /// </summary> + public override string Description + { + get + { + return "Internal Module"; + } + } + + /// <summary> + /// Gets the module cover image. + /// </summary> + public override BitmapSource Image + { + get + { + return null; + } + } + + /// <summary> + /// Gets the module entry point view type. + /// </summary> + public override Type MainViewType + { + get + { + return typeof(InternalModuleView); + } + } + + /// <summary> + /// Gets the permission required to see and load this module. + /// </summary> + public override Permissions Permission + { + get + { + return Permissions.RunPPC; + } + } + + /// <summary> + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// </summary> + public override void Dispose() + { + //Dispose module here... + } + } +} |
