From aeebb8d47e1d78b50d9ae5afd9df6eaf9765ed87 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 8 Jan 2019 17:59:31 +0200 Subject: Started working on power module... --- Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs index 5aa003c1e..7053e8356 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCModuleBase.cs @@ -8,6 +8,7 @@ using System.Windows.Media.Imaging; using Tango.Core; using Tango.BL.Entities; using Tango.BL.Enumerations; +using System.Reflection; namespace Tango.PPC.Common { @@ -27,6 +28,14 @@ namespace Tango.PPC.Common protected set { _isVisibleInMenu = value; RaisePropertyChangedAuto(); } } + /// + /// Gets a value indicating whether to dock this module menu item to the bottom. + /// + public bool DockToBottom + { + get { return this.GetType().GetCustomAttribute().DockToBottom; } + } + /// /// Gets the module name. /// -- cgit v1.3.1