Exemplo n.º 1
0
 public override void Draw(Graphics _Graphics, XView _View)
 {
     Point[] points = _View.ToScreenPoints(AllVertexes);
     _Graphics.FillPolygon(new SolidBrush(Color.Yellow), points);
     _Graphics.DrawPolygon(new Pen(Color.White, 2), points);
 }
Exemplo n.º 2
0
 public override void Draw(Graphics _Graphics, XView _View, bool _Selected)
 {
     Point[] points = _View.ToScreenPoints(AllVertexes);
     _Graphics.FillPolygon(new SolidBrush(_Selected ? Color.Red : Color.Green), points);
     _Graphics.DrawPolygon(new Pen(Color.White, 2), points);
 }
Exemplo n.º 3
0
 public override void Draw(Graphics _Graphics, XView _View)
 {
     _Graphics.DrawLines(new Pen(Color.Red, 2),
                         _View.ToScreenPoints(AllVertexes));
 }
Exemplo n.º 4
0
 public override void Draw(Graphics _Graphics, XView _View, bool _Selected)
 {
     _Graphics.DrawLines(new Pen(_Selected ? Color.Red : Color.Green, 2),
                         _View.ToScreenPoints(AllVertexes));
 }