public DrawingControl() { _shapeDrawer = new ShapeDrawer(); _transformBox = new ShapeBox(); _directBox = new DirectBox(); _transformBox.LocationChanged += ControlBox_LocationChanged; _transformBox.SizeChanged += ControlBox_SizeChanged; //_shapeDrawer = shapeDrawer; _controlMode = ControlMode.None; //_isEditing = false; _isSelected = false; _isShowBox = false; IsRegularShape = false; Visible = true; _text = ""; _selectionRecColor = Color.Blue; _selectionRecWidth = 1F; }