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); }
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; }
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; }