Пример #1
0
        public static Module GetModuleDetails(this enmModule e)
        {
            var type       = e.GetType();
            var name       = Enum.GetName(type, e);
            var returnData = (Module)type.GetField(name).GetCustomAttributes(typeof(Module), false).FirstOrDefault();

            returnData.Id = (int)e;
            return(returnData);
        }
Пример #2
0
 public SubModule(enmModule EnmModule, int DisplayOrder, string Name, string Description, string Icon, string CntrlName)
 {
     this.EnmModule    = EnmModule;
     this.DisplayOrder = DisplayOrder;
     this.Description  = Description;
     this.Name         = Name;
     this.CntrlName    = CntrlName;
     this.Icon         = Icon;
 }
Пример #3
0
 public Document(enmModule EnmModule, enmDocumentType DocumentType, int DisplayOrder, string Name, string Description,
                 string Icon, string ActionName)
 {
     this.DocumentType = DocumentType;
     this.DisplayOrder = DisplayOrder;
     this.Description  = Description;
     this.Name         = Name;
     this.Icon         = Icon;
     this.ActionName   = ActionName;
     this.EnmModule    = EnmModule;
 }