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); }
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; }