public EspackPrintingDrawing(EnumDrawingType pDrawType, float pX, float pY, float pWidth, float pHeight, Pen pPen = null) { DrawingType = pDrawType; X = pX; Y = pY; Width = pWidth; Height = pHeight; Pen = pPen; }
// Add a text item to the current area public void AddDrawing(float pX1, float pY1, float pX2, float pY2, EnumDrawingType pDrawType = EnumDrawingType.LINE, Pen pPen = null) { if (CurrentArea != null) { CurrentArea.AddDrawing(pDrawType, pX1, pY1, pX2 - pX1, pY2 - pY1, pPen); } else { MessageBox.Show("There is not current Area defined.", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void AddDrawing(EnumDrawingType pDrawType, float pX, float pY, float pWidth, float pHeight, Pen pPen = null) { // Create and add the object to the list Items.Add(new EspackPrintingDrawing(pDrawType, pX, pY, pWidth, pHeight, pPen)); }