Пример #1
0
        /// <summary>
        /// shows the form for getting information about the shapefile
        /// and retrieves user input (field name, shapefile name)
        /// returns true if successful
        /// </summary>
        public bool GetShapeInformation()
        {
            if (shapeForm == null)
            {
                shapeForm = new frmShapefile(m_MapWin);
            }

            // show the shapefile dialog
            if (shapeForm.ShowDialog() == DialogResult.OK)
            {
                m_ShpFileName = shapeForm.ShapeFileName;
                m_FieldName   = shapeForm.FieldName;
                return(GetGridInformation());
            }
            else
            {
                return(false);
            }
        }
Пример #2
0
 public ShapeGridInfo(MapWindow.Interfaces.IMapWin IMapWin)
 {
     m_MapWin = IMapWin;
     shapeForm = new frmShapefile(m_MapWin);
 }
Пример #3
0
 public ShapeGridInfo(MapWindow.Interfaces.IMapWin IMapWin)
 {
     m_MapWin  = IMapWin;
     shapeForm = new frmShapefile(m_MapWin);
 }
Пример #4
0
        /// <summary>
        /// shows the form for getting information about the shapefile
        /// and retrieves user input (field name, shapefile name)
        /// returns true if successful
        /// </summary>
        public bool GetShapeInformation()
        {
            if (shapeForm == null)
            {
                shapeForm = new frmShapefile(m_MapWin);
            }

            // show the shapefile dialog
            if (shapeForm.ShowDialog() == DialogResult.OK)
            {
                m_ShpFileName = shapeForm.ShapeFileName;
                m_FieldName = shapeForm.FieldName;
                return GetGridInformation();
            }
            else
            {
                return false;
            }
        }