public DrawPolygon(int x1, int y1, int x2, int y2, DrawingPens.PenType p) { pointArray = new ArrayList(); pointArray.Add(new Point(x1, y1)); pointArray.Add(new Point(x2, y2)); DrawPen = DrawingPens.SetCurrentPen(p); _PenType = p; LoadCursor(); Initialize(); }
public DrawEllipse(int x, int y, int width, int height, DrawingPens.PenType pType, Color fillColor, bool filled) { Rectangle = new Rectangle(x, y, width, height); Center = new Point(x + (width / 2), y + (height / 2)); TipText = String.Format("Ellipse Center @ {0}, {1}", Center.X, Center.Y); DrawPen = DrawingPens.SetCurrentPen(pType); _PenType = pType; FillColor = fillColor; Filled = filled; Initialize(); }
public DrawConnector(int x1, int y1, int x2, int y2, DrawingPens.PenType p) { pointArray = new ArrayList(); pointArray.Add(new Point(x1, y1)); pointArray.Add(new Point(x2, y2)); TipText = String.Format("Start @ {0}-{1}, End @ {2}, {3}", x1, y1, x2, y2); DrawPen = DrawingPens.SetCurrentPen(p); _PenType = p; LoadCursor(); Initialize(); }
public DrawPath(int x1, int y1, int x2, int y2, DrawingPens.PenType p, DrawArea owner) { pointArray = new ArrayList(); pointArray.Add(new Point(x1, y1)); pointArray.Add(new Point(x2, y2)); DrawPen = DrawingPens.SetCurrentPen(p); PenType = p; LoadCursor(); Initialize(); this.owner = owner; }
public DrawLine(int x1, int y1, int x2, int y2, DrawingPens.PenType p) { StartPoint.X = x1; StartPoint.Y = y1; EndPoint.X = x2; EndPoint.Y = y2; DrawPen = DrawingPens.SetCurrentPen(p); _PenType = p; ZOrder = 0; TipText = String.Format("Line Start @ {0}-{1}, End @ {2}-{3}", x1, y1, x2, y2); //this.DrawProperties = new PropertieBase(); Initialize(); }
public DrawConnector(int x1, int y1, int x2, int y2, DrawingPens.PenType p) { //Resizeable = true; pointArray = new ArrayList(); pointArray.Add(new Point(x1, y1)); pointArray.Add(new Point(x2, y2)); TipText = String.Format("Start @ {0}-{1}, End @ {2}, {3}", x1, y1, x2, y2); DrawPen = DrawingPens.SetCurrentPen(p); PenType = p; LoadCursor(); Initialize(); }
public DrawRectangle(int x, int y, int width, int height, DrawingPens.PenType pType, Color fillColor, bool filled) { Center = new Point(x + (width / 2), y + (height / 2)); rectangle.X = x; rectangle.Y = y; rectangle.Width = width; rectangle.Height = height; DrawPen = DrawingPens.SetCurrentPen(pType); _PenType = pType; FillColor = fillColor; Filled = filled; TipText = String.Format("Rectangle Center @ {0}, {1}", Center.X, Center.Y); Initialize(); }
public DrawDynamic(int x, int y, int width, int height, DrawingPens.PenType pType, Color fillColor, bool filled) { Resizeable = false; Center = new Point(x + (width / 2), y + (height / 2)); rectangle.X = x; rectangle.Y = y; rectangle.Width = width; rectangle.Height = height; DrawPen = DrawingPens.SetCurrentPen(pType); PenType = pType; FillColor = fillColor; Filled = filled; TipText = String.Format("Rectangle Center @ {0}, {1}", Center.X, Center.Y); }
private void dashedArrowLineToolStripMenuItem_Click(object sender, EventArgs e) { drawArea.PenType = DrawingPens.PenType.DashedArrowPen; drawArea.CurrentPen = DrawingPens.SetCurrentPen(DrawingPens.PenType.DashedArrowPen); }
private void redDotDashToolStripMenuItem_Click(object sender, EventArgs e) { drawArea.PenType = DrawingPens.PenType.RedDotDashPen; drawArea.CurrentPen = DrawingPens.SetCurrentPen(DrawingPens.PenType.RedDotDashPen); }
private void greenToolStripMenuItem_Click(object sender, EventArgs e) { drawArea.PenType = DrawingPens.PenType.GreenPen; drawArea.CurrentPen = DrawingPens.SetCurrentPen(DrawingPens.PenType.GreenPen); }
private void toolStripMenuItemGenericPen_Click(object sender, EventArgs e) { drawArea.PenType = DrawingPens.PenType.Generic; drawArea.CurrentPen = DrawingPens.SetCurrentPen(DrawingPens.PenType.Generic); }