Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 // 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);
     }
 }
Esempio n. 3
0
 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));
 }