/// <summary> /// Applies the changes and updates the map /// </summary> private void btnApply_Click(object sender, EventArgs e) { m_legend.Map.Redraw(); m_legend.Redraw(); m_legend.FireLayerPropertiesChanged(m_layer.Handle); _initState = _options.Serialize(); btnApply.Enabled = false; }
/// <summary> /// Saves the options and updates the map without closing the form /// </summary> private void btnApply_Click(object sender, EventArgs e) { if (ApplyOptions()) { if (m_legend != null) { m_legend.FireLayerPropertiesChanged(m_handle); m_legend.Map.Redraw(); m_legend.Redraw(); } m_initState = m_shapefile.Labels.Serialize(); RefreshControls(); btnApply.Enabled = false; } }