public MenuReportDescriptionAttribute(ReportSubMenu subMenu, string caption, int order) { PermissionObjects = new EIDSSPermissionObject[0]; PermissionActions = new[] { PermissionHelper.Select }; switch (subMenu) { case ReportSubMenu.Aberration: SmallIconIndex = (int)MenuIconsSmall.AberrationReport; break; case ReportSubMenu.Human: case ReportSubMenu.HumanGGOldRevision: case ReportSubMenu.Zoonotic: case ReportSubMenu.Simplified: SmallIconIndex = (int)MenuIconsSmall.HumanReport; break; case ReportSubMenu.Lab: SmallIconIndex = (int)MenuIconsSmall.LabReport; break; case ReportSubMenu.Vet: SmallIconIndex = (int)MenuIconsSmall.VetReport; break; case ReportSubMenu.Admin: SmallIconIndex = (int)MenuIconsSmall.AdminReport; break; default: SmallIconIndex = -1; break; } m_SubMenu = subMenu; m_Caption = caption; m_Order = order; }
protected abstract IMenuAction RegisterSubMenu (IMenuAction category, string resourceKey, EIDSSPermissionObject permission, int order);