diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2018-12-16 08:22:45 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2018-12-16 08:22:45 +0200 |
| commit | ecf55f4193c0a7ab273c7e8243e446a2f2c32d51 (patch) | |
| tree | aa965e23ba3d0dcd4fecf739b4ed95040553b628 /Software/Visual_Studio/PPC/Modules/Tango.PPC.Logging/LoggingModule.cs | |
| parent | b279560f0b4dfdd16dea6b70975dfc1961b8d61e (diff) | |
| download | Tango-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/Modules/Tango.PPC.Logging/LoggingModule.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.Logging/LoggingModule.cs | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Logging/LoggingModule.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Logging/LoggingModule.cs new file mode 100644 index 000000000..78c597e81 --- /dev/null +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Logging/LoggingModule.cs @@ -0,0 +1,47 @@ +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.Logging.Views; +using Tango.SharedUI.Helpers; + +namespace Tango.PPC.Logging +{ + [PPCModule(5)] + public class LoggingModule : PPCModuleBase + { + public override string Name => "Logging"; + public override string Description => "PPC logging module."; + public override BitmapSource Image => ResourceHelper.GetImageFromResources("Images/logging_module.png"); + public override Type MainViewType => typeof(MainView); + public override Permissions Permission => Permissions.RunPPC; + + public LoggingModule() + { + IsVisibleInMenu = false; + } + + public override void OnTechnicianEntered() + { + base.OnTechnicianEntered(); + + IsVisibleInMenu = true; + } + + public override void OnTechnicianExited() + { + base.OnTechnicianExited(); + + IsVisibleInMenu = false; + } + + public override void Dispose() + { + + } + } +} |
