public virtual void SetValue(ConfigValue key, object value, bool raiseEvent = true) { if((key.IsInt() && (value is int || value is float)) || (key.IsBool() && value is bool)) if (Values.ContainsKey(key)) Values[key] = value; else Values.Add(key, value); if(raiseEvent) Properties.OnValueChanged(key, value); }
public virtual void SetValue(ConfigValue key, object value, bool raiseEvent = true) { if ((key.IsInt() && (value is int || value is float)) || (key.IsBool() && value is bool)) { if (Values.ContainsKey(key)) { Values[key] = value; } else { Values.Add(key, value); } } if (raiseEvent) { Properties.OnValueChanged(key, value); } }