/// <summary> /// Set's a value for the config option. /// </summary> /// <param name="option">The config option that will represent the value.</param> /// <param name="value">The value.</param> public void SetSettingValue(ConfigurationFields option, string value) { if (settings.ContainsKey(option)) { settings[option] = value; } else { settings.Add(option, value); } }
/// <summary> /// Retrives the value of the field passed to it. /// </summary> /// <param name="option">The option that is wanted.</param> /// <returns>Returns the value as a string, returns null if value is not in the dictionary.</returns> public string GetSettingValue(ConfigurationFields option) { if (settings.ContainsKey(option)) { return(settings[option]); } else { return(null); } }