public void Save() { this.UpdateModel(this.cboFileExtension.Text); TextHighlighterConfigApi.GlobalColorDefinition.Save(); TextHighlighterConfigApi.PurgeGlobalColorDefinition(); TextHighlighterExtension.ConfigurationEngine.Refresh(); }
private void cboBackGroundColorTheme_SelectionChangeCommitted(object sender, EventArgs e) { this.lvColor.Visible = false; this.cboColorList.Visible = false; cboFileExtension_PreviousSelectedValue = null; // Force to reload the new Color Definition TextHighlighterConfigApi.PurgeGlobalColorDefinition(); TextHighlighterConfigApi.SetBackGroundColorDefinition(cboBackGroundColorTheme.Text); this.ReloadUI(); }