Ejemplo n.º 1
0
        private void loadSettings()
        {
            EditorSettings settings = EditorSettings.getInstance();

            this.BackgroundColor = System.Windows.Media.Color.FromRgb(settings.HighlightWord.BackColor.R, settings.HighlightWord.BackColor.G, settings.HighlightWord.BackColor.B);
            this.ForegroundColor = System.Windows.Media.Color.FromRgb(settings.HighlightWord.FrameColor.R, settings.HighlightWord.FrameColor.G, settings.HighlightWord.FrameColor.B);
        }
Ejemplo n.º 2
0
        private void loadSettings()
        {
            singletonSettings = EditorSettings.getInstance();

            HighlightWordProperties highlightWordProperties = new HighlightWordProperties(singletonSettings.HighlightWord);

            this.propHighlightWord.SelectedObject = highlightWordProperties;

            HighlightLineProperties highlightLineProperties = new HighlightLineProperties(singletonSettings.HighlightCurrentLine);

            this.propHighlightLine.SelectedObject = highlightLineProperties;

            nRows.Value = singletonSettings.Outlining.MaxRowsInTooltip;
        }
Ejemplo n.º 3
0
        private void LoadSettings()
        {
            EditorSettings settings = EditorSettings.getInstance();

            this.BackgroundColor = Color.FromArgb(settings.HighlightCurrentLine.BackColor.A,
                                                  settings.HighlightCurrentLine.BackColor.R,
                                                  settings.HighlightCurrentLine.BackColor.G,
                                                  settings.HighlightCurrentLine.BackColor.B);
            this.ForegroundColor = Color.FromArgb(settings.HighlightCurrentLine.FrameColor.A,
                                                  settings.HighlightCurrentLine.FrameColor.R,
                                                  settings.HighlightCurrentLine.FrameColor.G,
                                                  settings.HighlightCurrentLine.FrameColor.B);
            this.BackgroundOpacity = settings.HighlightCurrentLine.BackOpacity;
            //this.ForegroundBrush = Brushes.White;
        }
Ejemplo n.º 4
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();
        }
Ejemplo n.º 5
0
        private void LoadSettings()
        {
            EditorSettings settings = EditorSettings.getInstance();

            maxRowsInToolTip = settings.Outlining.MaxRowsInTooltip;
        }