Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
     }
 }