Exemple #1
0
 public override void draw(Pen p, Point startPoint, Point endPoint, PaintEventArgs e)
 {
     this.MPen     = new Pen(p.Color, p.Width);
     this.Start    = startPoint;
     this.End      = endPoint;
     this.MGraphic = e.Graphics;
     MGraphic.DrawLine(p, startPoint, endPoint);
 }
Exemple #2
0
        public override void draw(Pen p, Point startPoint, Point endPoint, Graphics g)
        {
            mGraphic  = g;
            this.MPen = new Pen(p.Color, p.Width);
            Start     = startPoint;
            End       = endPoint;

            MGraphic.DrawLine(p, startPoint, endPoint);
            //paintColor();
        }
Exemple #3
0
 public override void draw(Pen p, Graphics e)
 {
     this.MPen     = new Pen(p.Color, p.Width);
     this.MGraphic = e;
     MGraphic.DrawLine(MPen, Start, End);
 }
Exemple #4
0
 public override void draw(Graphics e)
 {
     this.MGraphic = e;
     MGraphic.DrawLine(MPen, Start, End);
 }
Exemple #5
0
 public override void draw(PaintEventArgs e)
 {
     this.MGraphic = e.Graphics;
     MGraphic.DrawLine(MPen, Start, End);
 }
Exemple #6
0
 public override void draw()
 {
     MGraphic.DrawLine(MPen, Start, End);
 }