private void setActive(GoodShape shape) { if(shape != null) { if (bo != null) bo.hide(); bo = shape.Bound; currentShape = shape; sim.setObjects(shape.GetType(), ShapeInfo); bo.show(); bo.Focus(); } }