Exemplo n.º 1
0
 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;
		}
Exemplo n.º 3
0
 public ProviderContext(PropertyGrid grid, PropertyEditor editor = null)
 {
     this.parentEditor = editor;
     this.parentGrid   = editor != null ? editor.ParentGrid : grid;
 }