Esempio n. 1
0
 public void Save()
 {
     this.UpdateModel(this.cboFileExtension.Text);
     TextHighlighterConfigApi.GlobalColorDefinition.Save();
     TextHighlighterConfigApi.PurgeGlobalColorDefinition();
     TextHighlighterExtension.ConfigurationEngine.Refresh();
 }
Esempio n. 2
0
        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();
        }