private void btnAddPath_Click(object sender, EventArgs e)
        {
            Path           path = _wpg.PathIntId(_current_intid);
            PolygonGridGUI gui  = new PolygonGridGUI();

            gui.name             = txtPolyPathName.Text;
            gui.video            = radioVideo.Checked;
            gui.startend         = chkRectHome.Checked;
            gui.altitude         = Convert.ToDouble(txtGridAlt.Text);
            gui.heading          = Convert.ToDouble(txtHeading.Text);
            gui.polyname         = _wpg.ShapeWithId(_poly_intid).name;
            gui.poly_internal_id = _poly_intid;
            path.polygridgui     = gui;
            _poly.visible        = false;
            _poly.selected       = false;
            this.Close();
        }
        private void btnAddRectPath_Click(object sender, EventArgs e)
        {
            Path          path = _wpg.PathIntId(_current_intid);
            RectanglarGUI gui  = new RectanglarGUI();

            gui.name          = path.name;
            gui.video         = radioVideo.Checked;
            gui.startend      = chkRectHome.Checked;
            gui.altitude      = Convert.ToDouble(txtPathAlt.Text);
            gui.heading       = Convert.ToDouble(txtGridRotation.Text);
            gui.length        = Convert.ToDouble(txtGridLength.Text);
            gui.width         = Convert.ToDouble(txtGridWidth.Text);
            gui.single        = chkOnePass.Checked;
            gui.poimode       = chkRectCamPOI.Checked;
            gui.poiname       = cmbRectCamPOI.SelectedText;
            path.rectanglegui = gui;
            _gmap.Delete_gMapPoly(_poly);
            this.Close();
        }