Draw polygon with coordinates
<p>I'm trying to draw a Polygon with coordinates, sounds pretty simple, but there's a problem and it's not drawing. I'm using Microsoft Blend for Visual Studio 14.</p>

<p>Microsoft .NET Framework 4.6.01055</p>

<pre><code>public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
    }

    public void DrawPolygon(
        Pen pen,
        Point[] points
        )
    { 

        public void DrawPolygonPoint(PaintEventArgs e)
        {
               //Creer Pen
               Pen blackPen = new Pen(Color.black, 3);

               //Creer points polygones
               Point point1 = new Point(10, 10);
               Point point2 = new Point(13, 11);
               Point point3 = new Point(15, 30);
               Point point4 = new Point(17, 10);
               Point point5 = new Point(20, 10);
               Point point6 = new Point(30, 15);
               Point point7 = new Point(30, 30);
               Point point8 = new Point(60, 40);
               Point point9 = new Point(65, 55);
               Point point10 = new Point(40, 60);
               Point point11 = new Point(40, 65);
               Point point12 = new Point(58, 70);
               Point point13 = new Point(60, 60);
               Point point14 = new Point(90, 60);
               Point point15 = new Point(90, 85);
               Point point16 = new Point(70, 61);
               Point point17 = new Point(60, 85);
               Point point18 = new Point(30, 85);
               Point point19 = new Point(12, 80);
               Point point20 = new Point(12, 78);
               Point point21 = new Point(16, 75);
               Point point22 = new Point(13, 68);
               Point point23 = new Point(17, 65);
               Point point24 = new Point(6, 62);
               Point point25 = new Point(16, 60);
               Point point26 = new Point(28, 56);
               Point point27 = new Point(27, 45);
               Point point28 = new Point(15, 32);
               Point point29 = new Point(15, 50);
               Point point30 = new Point(5, 50);
               Point point31 = new Point(10, 40);

               Point[] curvePoints =
               {
                    point1,
                    point2,
                    point3,
                    point4,
                    point5,
                    point6,
                    point7,
                    point8,
                    point9,
                    point10,
                    point11,
                    point12,
                    point13,
                    point14,
                    point15,
                    point16,
                    point17,
                    point18,
                    point19,
                    point20,
                    point21,
                    point22,
                    point23,
                    point24,
                    point25,
                    point26,
                    point27,
                    point28,
                    point29,
                    point30,
                    point31

                };

                 //Dessiner polygone
                 e.Graphics.DrawPolygon(blackPen, curvePoints);
      }
}
}
</code></pre>

<p>3 Errors are resulting. I think the major one is</p>

<blockquote>
  <p>CS1061: object has no definition for 'DrawPolygon'.</p>
  
  <p>CS0117: 'Color' has no definition for 'black'</p>
</blockquote>

<p>Any ideas on solving this? Thanks!</p>