protected virtual void LoadConfig(Configuration Config) { var config = Config.Read(); if (config != null) { ConfigurationMap = config; } }
protected virtual void LoadConfig(Configuration Config) { var config = Config.Read(); if (config != null) { ConfigurationMap = config; } if (!ConfigurationMap.ContainsKey("dateFormat") || string.IsNullOrEmpty(ConfigurationMap["dateFormat"])) { ConfigurationMap["dateFormat"] = Globals.DateFormat; } if (!ConfigurationMap.ContainsKey("timeFormat") || string.IsNullOrEmpty(ConfigurationMap["timeFormat"])) { ConfigurationMap["timeFormat"] = Globals.TimeFormat; } if (!ConfigurationMap.ContainsKey("protocol") || string.IsNullOrEmpty(ConfigurationMap["protocol"])) { ConfigurationMap["protocol"] = Globals.Protocol; } }