Example #1
0
        public void addConfigurationOption(string configuration_key, ConfigurationOption.ConfigurationTypes configuration_type, string configuration_question, string configuration_default, bool use_default_no_prompt, ConfigurationOption.ConfigurationOptionShouldBeAsked shouldIBeAskedDelegate)
        {
            ConfigurationOption configOption = new ConfigurationOption();

            configOption.configurationKey                = configuration_key;
            configOption.configurationQuestion           = configuration_question;
            configOption.configurationDefault            = configuration_default;
            configOption.configurationType               = configuration_type;
            configOption.configurationUseDefaultNoPrompt = use_default_no_prompt;
            configOption.shouldIBeAsked = shouldIBeAskedDelegate;
            checkAndAddConfigOption(configOption);
        }
Example #2
0
        public void addConfigurationOption(string configuration_key, ConfigurationOption.ConfigurationTypes configuration_type, string configuration_question, string configuration_default, bool use_default_no_prompt)
        {
            ConfigurationOption configOption = new ConfigurationOption();

            configOption.configurationKey                = configuration_key;
            configOption.configurationQuestion           = configuration_question;
            configOption.configurationDefault            = configuration_default;
            configOption.configurationType               = configuration_type;
            configOption.configurationUseDefaultNoPrompt = use_default_no_prompt;
            configOption.shouldIBeAsked = null; //Assumes true, I can ask whenever
            checkAndAddConfigOption(configOption);
        }
Example #3
0
 private void checkAndAddConfigOption(ConfigurationOption option)
 {
     if ((option.configurationKey != String.Empty && option.configurationQuestion != String.Empty) || (option.configurationKey != String.Empty && option.configurationUseDefaultNoPrompt))
     {
         if (!configurationOptions.Contains(option))
         {
             configurationOptions.Add(option);
         }
     }
     else
     {
         m_log.Info("Required fields for adding a configuration option is invalid. Will not add this option (" + option.configurationKey + ")");
     }
 }
 public void addConfigurationOption(string configuration_key,
                                    ConfigurationOption.ConfigurationTypes configuration_type,
                                    string configuration_question, string configuration_default,
                                    bool use_default_no_prompt,
                                    ConfigurationOption.ConfigurationOptionShouldBeAsked shouldIBeAskedDelegate)
 {
     ConfigurationOption configOption = new ConfigurationOption();
     configOption.configurationKey = configuration_key;
     configOption.configurationQuestion = configuration_question;
     configOption.configurationDefault = configuration_default;
     configOption.configurationType = configuration_type;
     configOption.configurationUseDefaultNoPrompt = use_default_no_prompt;
     configOption.shouldIBeAsked = shouldIBeAskedDelegate;
     checkAndAddConfigOption(configOption);
 }
 public void addConfigurationOption(string configuration_key,
                                    ConfigurationOption.ConfigurationTypes configuration_type,
                                    string configuration_question, string configuration_default,
                                    bool use_default_no_prompt)
 {
     ConfigurationOption configOption = new ConfigurationOption();
     configOption.configurationKey = configuration_key;
     configOption.configurationQuestion = configuration_question;
     configOption.configurationDefault = configuration_default;
     configOption.configurationType = configuration_type;
     configOption.configurationUseDefaultNoPrompt = use_default_no_prompt;
     configOption.shouldIBeAsked = null; //Assumes true, I can ask whenever
     checkAndAddConfigOption(configOption);
 }
 private void checkAndAddConfigOption(ConfigurationOption option)
 {
     if ((option.configurationKey != String.Empty && option.configurationQuestion != String.Empty) ||
         (option.configurationKey != String.Empty && option.configurationUseDefaultNoPrompt))
     {
         if (!configurationOptions.Contains(option))
         {
             configurationOptions.Add(option);
         }
     }
     else
     {
         m_log.Info(
             "Required fields for adding a configuration option is invalid. Will not add this option (" +
             option.configurationKey + ")");
     }
 }