public AddTextCommand(mPlayground iPlayground, aShape iShape, string iText, TextPos pos) { playground = iPlayground; shape = iShape; text = iText; textPos = pos; }
public ShapeDrawTool(mPlayground iPlayground) { playground = iPlayground; curShape = eShape.Rect; currentShape = null; drawing = false; }
public ShapeSelectTool(mPlayground iPlayground) { playground = iPlayground; selectionRect = new mRectangle(1, 1, Color.LightBlue); selectionRect.BorderColor = Color.MidnightBlue; selectionRect.BorderSize = 2; selectionRect.DrawBorder = true; selectionRect.Selected = true; selectionRect.Load(); typing = false; }
public DeleteCommand(aShape iShape, mPlayground iPlayground) { playground = iPlayground; deletedShape = iShape; }
public DrawCommand(aShape iShape, mPlayground iPlayground) { currentShape = iShape; playground = iPlayground; }
public ShapeTransformTool(mPlayground iPlayground) { playground = iPlayground; transforming = false; }
public ShapeMoveTool(mPlayground iPlayground) { playground = iPlayground; movingShape = null; }