private void btnOK_Click(object sender, EventArgs e) { m_uctrGeneral.SaveChangeResult(); if (m_uctrDefQuery != null) { m_uctrDefQuery.GetQueryResult(); } if (m_uctrFields != null) { m_uctrFields.SaveFieldChange(); } //空间索引 if (m_ucSpatialIndex != null) { m_ucSpatialIndex.SetGridSize(); //空间索引 m_ucSpatialIndex.SetRasterNoDataColor(); //影像无效值设置 } this.Close(); //改掉刷新方式 xisheng 20111117*********************************************** if (m_MapControl != null) { m_MapControl.Refresh(esriViewDrawPhase.esriViewBackground, m_pLayer, null); } //改掉刷新方式 xisheng 20111117*********************************************end }
private void btnOK_Click(object sender, EventArgs e) { m_uctrGeneral.SaveChangeResult(); if (m_uctrDefQuery != null) { m_uctrDefQuery.GetQueryResult(); } if (m_uctrFields != null) { m_uctrFields.SaveFieldChange(); } //空间索引 if (m_ucSpatialIndex != null) { m_ucSpatialIndex.SetGridSize(); //空间索引 m_ucSpatialIndex.SetRasterNoDataColor(); //影像无效值设置 } this.Close(); if (m_pActiveView != null) { m_pActiveView.Refresh(); } }