diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-16 10:14:14 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-16 10:14:14 +0200 |
| commit | d8d1128887089087578286f37561dc8942726ba4 (patch) | |
| tree | d328d815d5d49686182fec33983e6c18eda72df6 /Software/Visual_Studio/PPC/Modules/Tango.PPC.Logging/LoggingModule.cs | |
| parent | f8138b3d641d51bba4bda9056f0b1187da6bebb6 (diff) | |
| parent | ecf55f4193c0a7ab273c7e8243e446a2f2c32d51 (diff) | |
| download | Tango-d8d1128887089087578286f37561dc8942726ba4.tar.gz Tango-d8d1128887089087578286f37561dc8942726ba4.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
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() + { + + } + } +} |
