示例#1
0
        public void AddBlockCommand()
        {
            ConfigurationUICommand cmd = ConfigurationUICommand.CreateSingleUICommand(ServiceProvider,
                                                                                      Resources.$NameWithoutDots$,
                                                                                      Resources.Add$NameWithoutDots$,
                                                                                      new AddApplicationBlockSettingsNodeCommand(ServiceProvider),
                                                                                      typeof(ApplicationBlockSettingsNode));

            AddUICommand(cmd, typeof(ConfigurationApplicationNode));
        }
        private void AddConnectionStringsSectionCommand()
        {
            ConfigurationUICommand item = ConfigurationUICommand.CreateSingleUICommand(ServiceProvider,
                                                                                       Resources.ConnectionStringsUICommandText,
                                                                                       Resources.ConnectionStringsUICommandLongText,
                                                                                       new AddConnectionStringsSectionNodeCommand(ServiceProvider),
                                                                                       typeof(ConnectionStringSettingsNode));

            AddUICommand(item, typeof(DatabaseSectionNode));
        }
示例#3
0
        private void AddCacheSettingsCommand()
        {
            ConfigurationUICommand cmd = ConfigurationUICommand.CreateSingleUICommand(ServiceProvider,
                                                                                      Resources.CachingSettingsUICommandText,
                                                                                      Resources.CachingSettingsUICommandLongText,
                                                                                      new AddCacheManagerSettingsNodeCommand(ServiceProvider),
                                                                                      typeof(CacheManagerSettingsNode));

            AddUICommand(cmd, typeof(ConfigurationApplicationNode));
        }
        private void AddSecurityCommand()
        {
            ConfigurationUICommand item = ConfigurationUICommand.CreateSingleUICommand(ServiceProvider,
                                                                                       Resources.AddConfigurationSectionCommandName,
                                                                                       string.Format(Resources.Culture, Resources.GenericCreateStatusText, Resources.AddConfigurationSectionCommandName),
                                                                                       new AddSecuritySettingsNodeCommand(ServiceProvider),
                                                                                       typeof(SecuritySettingsNode));

            AddUICommand(item, typeof(ConfigurationApplicationNode));
        }
示例#5
0
        private void AddLoggingCommand()
        {
            ConfigurationUICommand item = ConfigurationUICommand.CreateSingleUICommand(ServiceProvider,
                                                                                       Resources.LogSettingsCommandText,
                                                                                       Resources.LogSettingsCommandLongText,
                                                                                       new AddLoggingSettingsNodeCommand(ServiceProvider),
                                                                                       typeof(LoggingSettingsNode));

            AddUICommand(item, typeof(ConfigurationApplicationNode));
        }
示例#6
0
        private void AddOracleConnectionElementCommand()
        {
            ConfigurationUICommand item = ConfigurationUICommand.CreateSingleUICommand(ServiceProvider,
                                                                                       Resources.OracleConnectionUICommandText,
                                                                                       Resources.OracleConnectionUICommandLongText,
                                                                                       new AddOracleConnectionElementNodeCommand(ServiceProvider),
                                                                                       typeof(OracleConnectionElementNode));

            AddUICommand(item, typeof(ConnectionStringSettingsNode));
        }
示例#7
0
        private void AddCryptographySettingsCommand()
        {
            ConfigurationUICommand cmd = ConfigurationUICommand.CreateSingleUICommand(ServiceProvider,
                                                                                      Resources.CryptographySectionCommandName,
                                                                                      string.Format(Resources.Culture, Resources.GenericCreateStatusText, Resources.CryptographySectionCommandName),
                                                                                      new AddCryptographySettingsNodeCommand(ServiceProvider),
                                                                                      typeof(CryptographySettingsNode));

            AddUICommand(cmd, typeof(ConfigurationApplicationNode));
        }
示例#8
0
        public void AddBlockCommand()
        {
            ConfigurationUICommand cmd = ConfigurationUICommand.CreateSingleUICommand(ServiceProvider,
                                                                                      Resources.DGTEL_SampleAB,
                                                                                      Resources.AddDGTEL_SampleAB,
                                                                                      new AddApplicationBlockSettingsNodeCommand(ServiceProvider),
                                                                                      typeof(ApplicationBlockSettingsNode));

            AddUICommand(cmd, typeof(ConfigurationApplicationNode));
        }
示例#9
0
        private void AddDataCaheStorageCommand()
        {
            ConfigurationUICommand cmd = ConfigurationUICommand.CreateSingleUICommand(ServiceProvider,
                                                                                      Resources.DataCacheStorageCommandText,
                                                                                      Resources.DataCacheStorageCommandLongText,
                                                                                      new AddDataCacheStorageCommand(ServiceProvider),
                                                                                      typeof(CacheStorageNode));

            AddUICommand(cmd, typeof(CacheManagerNode));
        }
示例#10
0
        private void AddDataCommand()
        {
            ConfigurationUICommand item = ConfigurationUICommand.CreateSingleUICommand(ServiceProvider,
                                                                                       Resources.DataUICommandText,
                                                                                       Resources.DataUICommandLongText,
                                                                                       new AddDatabaseSectionNodeCommand(ServiceProvider),
                                                                                       typeof(DatabaseSectionNode));

            AddUICommand(item, typeof(ConfigurationApplicationNode));
        }
示例#11
0
        private void AddSymmetricStorageEncryptionCommand()
        {
            ConfigurationUICommand cmd = ConfigurationUICommand.CreateSingleUICommand(ServiceProvider,
                                                                                      Resources.SymmetricStorageEncryptionProviderCommandText,
                                                                                      Resources.SymmetricStorageEncryptionProviderCommandLongText,
                                                                                      new AddSymmetricStorageEncryptionCommand(ServiceProvider),
                                                                                      typeof(CacheStorageEncryptionNode));

            AddUICommand(cmd, typeof(IsolatedStorageCacheStorageNode));
            AddUICommand(cmd, typeof(CustomCacheStorageNode));
            AddUICommand(cmd, typeof(DataCacheStorageNode));
        }
示例#12
0
        private void AddPolicyInjectionSettingsCommands()
        {
            AddDefaultCommands(typeof(PolicyInjectionSettingsNode));
            ConfigurationUICommand cmd = ConfigurationUICommand.CreateSingleUICommand(
                ServiceProvider,
                Resources.AddPolicyInjectionSettingsCommandText,
                Resources.AddPolicyInjectionSettingsCommandTextLong,
                new AddPolicyInjectionSettingsCommand(ServiceProvider),
                typeof(PolicyInjectionSettingsNode));

            AddUICommand(cmd, typeof(ConfigurationApplicationNode));
        }
        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));
        }