public override Control ShowControl(Rectangle valueRect, PropertyEnumerator propEnum) { if ((propEnum.Property.Value.IsReadOnly(propEnum)) && !_editable) return null; PropInPlaceColorChooser colorChooser; if (mInPlaceCtrl == null) { colorChooser = new PropInPlaceColorChooser(_editable); colorChooser.Visible = false; colorChooser.Parent = mParentWnd; mInPlaceCtrl = colorChooser; } else colorChooser = (PropInPlaceColorChooser)mInPlaceCtrl; colorChooser.Font = propEnum.Property.Value.Font; colorChooser.Text = propEnum.Property.Value.DisplayString; MoveControl(valueRect, propEnum, false); colorChooser.OwnerPropertyEnumerator = propEnum; return base.ShowControl(valueRect, propEnum); }
public override Control ShowControl(Rectangle valueRect, PropertyEnumerator propEnum) { if ((propEnum.Property.Value.IsReadOnly(propEnum)) && !_editable) { return(null); } PropInPlaceColorChooser colorChooser; if (mInPlaceCtrl == null) { colorChooser = new PropInPlaceColorChooser(_editable); colorChooser.Visible = false; colorChooser.Parent = mParentWnd; mInPlaceCtrl = colorChooser; } else { colorChooser = (PropInPlaceColorChooser)mInPlaceCtrl; } colorChooser.Font = propEnum.Property.Value.Font; colorChooser.Text = propEnum.Property.Value.DisplayString; MoveControl(valueRect, propEnum, false); colorChooser.OwnerPropertyEnumerator = propEnum; return(base.ShowControl(valueRect, propEnum)); }
public EditorService(PropInPlaceColorChooser picker) { _picker = picker; }
public EditorService(PropInPlaceColorChooser picker) { _picker = picker; }