private void EntitySettingEditor_Load(object sender, EventArgs e) { if (EntitySetting == null) { throw new InvalidOperationException("EntitySetting is not set."); } if (String.IsNullOrEmpty(ObjectName)) { throw new InvalidOperationException("ObjectName is not set."); } Text = String.Format(EntitySettingResources.EditorCaption, ObjectName); labelHelp.Text = EntitySetting.HelpText; EntityType entities = EntitySetting.ConvertTo(TargetRule); checkTypes.Checked = entities.Contains(EntityType.Types); checkFields.Checked = entities.Contains(EntityType.Fields); checkMethods.Checked = entities.Contains(EntityType.Methods); checkParameters.Checked = entities.Contains(EntityType.Parameters); checkVariables.Checked = entities.Contains(EntityType.Variables); }
public override bool Accept(MeshDataCommand command, MeshQuery query, IEntity entity) { return(command.ProviderId == this.GetProviderId() && query.Action == ActionType.UPDATE && EntityType.Contains(entity.EntityType)); }
/// <summary> /// Checks whether specified entity should be checked for name length. /// </summary> public bool IsEnabledCheckLength(string settingName) { EntityType entityToCheck = ResolveEntity(settingName); return(m_checkLength.Contains(entityToCheck)); }
/// <summary> /// Checks whether specified entity should be checked for using English characters only. /// </summary> public bool IsEnabledEnglishOnly(string settingName) { EntityType entityToCheck = ResolveEntity(settingName); return(m_englishOnly.Contains(entityToCheck)); }
/// <summary> /// Checks whether specified entity should be checked for @ character usage. /// </summary> public bool IsEnabledBlockAt(string settingName) { EntityType entityToCheck = ResolveEntity(settingName); return(m_blockAt.Contains(entityToCheck)); }
public override bool Accept(RemoveFromProcessingDataCommand command, MeshQuery query, IEntity entity) { return(command.ProviderId == this.GetProviderId() && query.Action == ActionType.DISASSOCIATE && EntityType.Contains(entity.EntityType)); }