private void OnDeserializing(StreamingContext context) { SecurityPrincipalType[] value = new SecurityPrincipalType[] { SecurityPrincipalType.UniversalSecurityGroup, SecurityPrincipalType.User }; base["Types"] = value; base["RoleGroupAssignable"] = true; }
public static string GenerateIconAltText(SecurityPrincipalType securityPrincipalType) { string result = string.Empty; switch (securityPrincipalType) { case SecurityPrincipalType.User: result = Strings.MailboxAltText; break; case SecurityPrincipalType.Group: result = Strings.DistributionGroupAltText; break; } return(result); }
public static string FromEnum(SecurityPrincipalType securityPrincipalType) { string result = string.Empty; switch (securityPrincipalType) { case SecurityPrincipalType.User: result = CommandSprite.GetCssClass(CommandSprite.SpriteId.Mailbox16); break; case SecurityPrincipalType.Group: result = CommandSprite.GetCssClass(CommandSprite.SpriteId.DistributionGroup16); break; } return(result); }