private void AddHashAlgortihmProviderCommand() { ConfigurationUICommand cmd = ConfigurationUICommand.CreateMultipleUICommand(ServiceProvider, Resources.HashAlgorithmProviderNodeName, string.Format(Resources.Culture, Resources.GenericCreateStatusText, Resources.HashAlgorithmProviderNodeName), new AddHashAlgorithmProviderNodeCommand(ServiceProvider), typeof(HashAlgorithmProviderNode)); AddUICommand(cmd, typeof(HashProviderCollectionNode)); }
private void AddExceptionTypeNodeCommand() { ConfigurationUICommand cmd = ConfigurationUICommand.CreateMultipleUICommand(ServiceProvider, Resources.ExceptionTypeNodeMenuText, Resources.ExceptionTypeNodeStatusText, new AddExceptionTypeNodeCommand(ServiceProvider, typeof(ExceptionTypeNode)), typeof(ExceptionTypeNode)); AddUICommand(cmd, typeof(ExceptionPolicyNode)); }
private void AddConnectionStringSettingsCommand() { ConfigurationUICommand item = ConfigurationUICommand.CreateMultipleUICommand(ServiceProvider, Resources.ConnectionStringUICommandText, Resources.ConnectionStringUICommandLongText, new AddConnectionStringSettingsNodeCommand(ServiceProvider), typeof(ConnectionStringSettingsNode)); AddUICommand(item, typeof(ConnectionStringsSectionNode)); }
private void AddLoggingDatabaseCommand() { ConfigurationUICommand cmd = ConfigurationUICommand.CreateMultipleUICommand(ServiceProvider, Resources.DatabaseTraceListenerUICommandText, Resources.DatabaseTraceListenerUICommandLongText, new AddLoggingDatabaseCommand(ServiceProvider), typeof(LoggingDatabaseNode)); AddUICommand(cmd, typeof(TraceListenerCollectionNode)); }
private void AddLoggingExceptionHandlerCommand() { ConfigurationUICommand cmd = ConfigurationUICommand.CreateMultipleUICommand(ServiceProvider, Resources.LoggingHandlerName, string.Format(Resources.Culture, Resources.GenericCreateStatusText, Resources.LoggingHandlerName), new AddLoggingExceptionHandlerCommand(ServiceProvider), typeof(ExceptionHandlerNode)); AddUICommand(cmd, typeof(ExceptionTypeNode)); }
private void AddCachingStoreProviderNodeCommand() { ConfigurationUICommand item = ConfigurationUICommand.CreateMultipleUICommand(ServiceProvider, Resources.SecurityInstance, string.Format(Resources.Culture, Resources.GenericCreateStatusText, Resources.SecurityInstance), new AddCachingStoreProviderNodeCommand(ServiceProvider), typeof(SecurityCacheProviderNode)); AddUICommand(item, typeof(SecurityCacheProviderCollectionNode)); }
private void AddTypeCommands() { AddDefaultCommands(typeof(TypeNode)); ConfigurationUICommand cmd = ConfigurationUICommand.CreateMultipleUICommand(ServiceProvider, Resources.AddValidationTypeCommandName, Resources.AddValidationTypeCommand, new AddTypeNodeCommand(ServiceProvider), typeof(TypeNode)); AddUICommand(cmd, typeof(ValidationSettingsNode)); }
private void AddTraceListenerReferenceCommand() { ConfigurationUICommand item = ConfigurationUICommand.CreateMultipleUICommand(ServiceProvider, Resources.TraceListenerReferenceUICommandText, Resources.TraceListenerReferenceUICommandLongText, new AddChildNodeCommand(ServiceProvider, typeof(TraceListenerReferenceNode)), typeof(TraceListenerReferenceNode)); AddUICommand(item, typeof(AllTraceSourceNode)); AddUICommand(item, typeof(ErrorsTraceSourceNode)); AddUICommand(item, typeof(NotProcessedTraceSourceNode)); AddUICommand(item, typeof(CategoryTraceSourceNode)); }
private void AddPolicyCommands() { AddMoveUpDownCommands(typeof(PolicyNode)); AddDefaultCommands(typeof(PolicyNode)); ConfigurationUICommand cmd = ConfigurationUICommand.CreateMultipleUICommand(ServiceProvider, Resources.AddPolicyCommandText, Resources.AddPolicyCommandTextLong, new AddPolicyCommand(ServiceProvider), typeof(PolicyCollectionNode)); AddUICommand(cmd, typeof(PolicyCollectionNode)); }
public override void Register() { AddValidationSettingCommands(); AddTypeCommands(); AddRuleCommands(); AddFieldCommands(); AddPropertyCommands(); AddMethodCommands(); AddValidatorCommands(typeof(NotNullValidatorNode), Resources.AddNotNullValidatorCommandName, Resources.AddNotNullValidatorCommand); AddValidatorCommands(typeof(RangeValidatorNode), Resources.AddRangeValidatorCommandName, Resources.AddRangeValidatorCommand); AddValidatorCommands(typeof(DateRangeValidatorNode), Resources.AddDateRangeValidatorCommandName, Resources.AddDateRangeValidatorCommand); AddValidatorCommands(typeof(StringLengthValidatorNode), Resources.AddStringLengthValidatorCommandName, Resources.AddStringLengthValidatorCommand); AddValidatorCommands(typeof(RegexValidatorNode), Resources.AddRegexValidatorCommandName, Resources.AddRegexValidatorCommand); AddValidatorCommands(typeof(TypeConversionValidatorNode), Resources.AddTypeConversionValidatorCommandName, Resources.AddTypeConversionValidatorCommand); AddValidatorCommands(typeof(EnumConversionValidatorNode), Resources.AddEnumConversionValidatorCommandName, Resources.AddEnumConversionValidatorCommand); AddValidatorCommands(typeof(RelativeDateTimeValidatorNode), Resources.AddRelativeDateTimeValidatorCommandName, Resources.AddRelativeDateTimeValidatorCommand); AddValidatorCommands(typeof(ContainsCharactersValidatorNode), Resources.AddContainsCharactersValidatorCommandName, Resources.AddContainsCharactersValidatorCommand); AddValidatorCommands(typeof(DomainValidatorNode), Resources.AddDomainValidatorCommandName, Resources.AddDomainValidatorCommand); AddValidatorCommands(typeof(CustomValidatorNode), Resources.AddCustomValidatorCommandName, Resources.AddCustomValidatorCommand); AddValidatorCommands(typeof(OrCompositeValidatorNode), Resources.AddOrCompositeValidatorCommandName, Resources.AddOrCompositeValidatorCommand); AddValidatorCommands(typeof(AndCompositeValidatorNode), Resources.AddAndCompositeValidatorCommandName, Resources.AddAndCompositeValidatorCommand); AddValidatorCommands(typeof(ObjectValidatorNode), Resources.AddObjectValidatorCommandName, Resources.AddObjectValidatorCommand); AddValidatorCommands(typeof(ObjectCollectionValidatorNode), Resources.AddObjectCollectionValidatorCommandName, Resources.AddObjectCollectionValidatorCommand); AddValidatorCommands(typeof(PropertyComparisonValidatorNode), Resources.AddPropertyComparisonValidatorCommandName, Resources.AddPropertyComparisonValidatorCommand); ConfigurationUICommand cmd = ConfigurationUICommand.CreateMultipleUICommand(ServiceProvider, Resources.AddMemberCommandName, Resources.AddMemberCommand, new ChooseMembersCommand(ServiceProvider), typeof(ConfigurationNode)); AddUICommand(cmd, typeof(RuleSetNode)); }
public override void Register() { ConfigurationUICommand cmd = ConfigurationUICommand.CreateSingleUICommand( ServiceProvider, "ACME POS WebService Settings", "Add ACME POS WebService Settings", new AddWebServiceSettingsNodeCommand(ServiceProvider), typeof(WebServiceSettingsNode)); AddUICommand(cmd, typeof(ConfigurationApplicationNode)); AddDefaultCommands(typeof(WebServiceSettingsNode)); ConfigurationUICommand item = ConfigurationUICommand.CreateMultipleUICommand( ServiceProvider, "Web Service URL", "Add Web Service URL", new AddWebServiceURLNodeCommand(ServiceProvider), typeof(WebServiceURLNode)); AddUICommand(item, typeof(WebServiceURLCollectionNode)); AddDefaultCommands(typeof(WebServiceURLNode)); }