public EditFieldAction(PropertyGrid parent, FieldInfo field, IEnumerable<object> target, IEnumerable<object> value) { if (field == null) throw new ArgumentNullException("field"); if (target == null) throw new ArgumentNullException("target"); this.targetField = field; this.targetObj = target.Where(o => o != null).ToArray(); this.targetValue = value != null ? value.ToArray() : null; this.parent = parent; }
public EditPropertyAction(PropertyGrid parent, PropertyInfo property, IEnumerable<object> target, IEnumerable<object> value) { if (property == null) throw new ArgumentNullException("property"); if (target == null) throw new ArgumentNullException("target"); this.targetProperty = property; this.targetObj = target.Where(o => o != null).ToArray(); this.targetValue = value != null ? value.ToArray() : null; this.parent = parent; }
public ProviderContext(PropertyGrid grid, PropertyEditor editor = null) { this.parentEditor = editor; this.parentGrid = editor != null ? editor.ParentGrid : grid; }