aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Logging/LoggingModule.cs
diff options
context:
space:
mode:
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.cs47
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()
+ {
+
+ }
+ }
+}