Example #1
0
        public bool GetGridInformation()
        {
            //now show the grid form
            bool    result   = false;
            frmGrid gridForm = new frmGrid(m_MapWin, m_ShpFileName);

            if (gridForm.ShowDialog() == DialogResult.OK)
            {
                m_GridHeader   = gridForm.GridHeader;
                m_GridDataType = gridForm.GridDataType;
                m_GridFileName = gridForm.GridFileName;
                m_GridFileType = gridForm.GridFileType;
                result         = true;
            }
            else
            {
                //the user clicked the BACK button - go back to 'select shapefile' dialog
                result = GetShapeInformation();
            }
            return(result);
        }
Example #2
0
        public bool GetGridInformation()
        {
            //now show the grid form
            bool result = false;
            frmGrid gridForm = new frmGrid(m_MapWin, m_ShpFileName);

            if (gridForm.ShowDialog() == DialogResult.OK)
            {
                m_GridHeader = gridForm.GridHeader;
                m_GridDataType = gridForm.GridDataType;
                m_GridFileName = gridForm.GridFileName;
                m_GridFileType = gridForm.GridFileType;
                result = true;
            }
            else
            {
                //the user clicked the BACK button - go back to 'select shapefile' dialog
                result = GetShapeInformation();
            }
            return result;
        }