Ejemplo n.º 1
0
 private void finishSketchToolStripMenuItem_Click(object sender, EventArgs e)
 {
     isDrawFinished = true;
     if (inputPoiList.Count() > 2)
     {
         Polygon temp = new Polygon(inputPoiList);
         currentPolygon.Add(temp);
     }
     madePolygonList.Add(currentPolygon);
     inputPoiList   = new Stack <Point> {
     };
     currentPolygon = new MultiPolygon();
     finishSketchToolStripMenuItem.Enabled = false;
     finishPartToolStripMenuItem.Enabled   = false;
     pictureBox1.Refresh();
 }
Ejemplo n.º 2
0
 private void pictureBox1_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (!isDrawFinished)
     {
         if (inputPoiList.Count() <= 2)
         {
             return;
         }
         isDrawFinished = true;
         Polygon temp = new Polygon(inputPoiList);
         currentPolygon.Add(temp);
         madePolygonList.Add(currentPolygon);
         inputPoiList   = new Stack <Point> {
         };
         currentPolygon = new MultiPolygon();
         finishSketchToolStripMenuItem.Enabled = false;
         finishPartToolStripMenuItem.Enabled   = false;
         pictureBox1.Refresh();
     }
 }