public SelectionUIItem(SelectionUIService selUIsvc, object component) { this.selUIsvc = selUIsvc; this.component = component; this.selectionStyle = SelectionStyles.Selected; this.handler = selUIsvc.GetHandler(component); this.sizes = inactiveSizeArray; this.cursors = inactiveCursorArray; IComponent component2 = component as IComponent; if (component2 != null) { ControlDesigner designer = selUIsvc.host.GetDesigner(component2) as ControlDesigner; if (designer != null) { this.control = designer.Control; } } this.UpdateRules(); this.UpdateGrabSettings(); this.UpdateSize(); }