Beispiel #1
0
        private void saveSettings()
        {
            HighlightWordProperties propHighlightWord = (HighlightWordProperties)this.propHighlightWord.SelectedObject;
            HighlightLineProperties propHighlightLine = (HighlightLineProperties)this.propHighlightLine.SelectedObject;

            singletonSettings = EditorSettings.getInstance();

            // Highliht selected word
            singletonSettings.HighlightWord.BackColor  = propHighlightWord.BackColor;
            singletonSettings.HighlightWord.FrameColor = propHighlightWord.FrameColor;

            // Highlight current line
            singletonSettings.HighlightCurrentLine.BackColor   = propHighlightLine.BackColor;
            singletonSettings.HighlightCurrentLine.FrameColor  = propHighlightLine.FrameColor;
            singletonSettings.HighlightCurrentLine.BackOpacity = propHighlightLine.BackOpacity;

            // Outlining
            singletonSettings.Outlining.MaxRowsInTooltip = Convert.ToInt32(nRows.Value);

            singletonSettings.saveChanges();
        }
Beispiel #2
0
        private void LoadSettings()
        {
            EditorSettings settings = EditorSettings.getInstance();

            maxRowsInToolTip = settings.Outlining.MaxRowsInTooltip;
        }