/// <summary> /// Identifies whether a software module is selecteable within the user interface or via the API /// </summary> private static Boolean IsSelectableModule(LicenseModules module) { String moduleName = module.ToString(); FieldInfo moduleInfo = typeof(LicenseModules).GetField(moduleName, BindingFlags.Public | BindingFlags.Static); BrowsableAttribute moduleAttr = moduleInfo.GetCustomAttributes().OfType <BrowsableAttribute>().FirstOrDefault(); return(moduleAttr == null || moduleAttr.Browsable); }
public override string ToString() { var modules = LicenseModules != null?LicenseModules.Select(x => x.Description()) : new string[0]; return(string.Format( @"Идентификатор: {0}, Валиден до: {1}, Демо: {2}, Потребител: {3}, Mодули: {4}, Вид: {5}", Id, ValidTo, IsDemo.ToBgString(), User, string.Join(",", modules), Type.Description())); }
public UserPermissionSet(LicenseModules module, Type runtimeType) { _module = module; _runtimeType = runtimeType; }