public void SetPropertyValueByIndex(int index, object value)
        {
            ConfigProperty p = GetPropertyByIndex(index);

            if (p != null)
            {
                p.SetSetting(value);
                _dirty = true;
            }
        }
        public void SetSetting(string name, object value)
        {
            ConfigProperty p = GetConfigProperty(name);

            if (p == null)
            {
                if (value != null && value != DBNull.Value)
                {
                    Type t = typeof(string);
                    p = _properties.CreateConfigProperty(name, t);
                }
                else
                {
                    return;
                }
            }
            p.SetSetting(value);
        }
Example #3
0
 public override void SetValue(object component, object value)
 {
     _property.SetSetting(value);
     _owner.Save();
 }
 public override void SetValue(object component, object value)
 {
     _prop.SetSetting(value);
 }