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); }
private void LoadSettings() { EditorSettings settings = EditorSettings.getInstance(); EnableWH = settings.GeneralSettings.EnableWH; SelectedWord = settings.HighlightWord.SelectedWord; }
private void LoadSettings() { EditorSettings settings = EditorSettings.getInstance(); maxRowsInToolTip = settings.Outlining.MaxRowsInTooltip; EnableOL = settings.GeneralSettings.EnableOL; }
private void saveSettings() { HighlightWordProperties propHighlightWord = (HighlightWordProperties)this.propHighlightWord.SelectedObject; HighlightLineProperties propHighlightLine = (HighlightLineProperties)this.propHighlightLine.SelectedObject; singletonSettings = EditorSettings.getInstance(); // General singletonSettings.GeneralSettings.EnableBM = EnableBM.Checked; singletonSettings.GeneralSettings.EnableCL = EnableCL.Checked; singletonSettings.GeneralSettings.EnableWH = EnableWH.Checked; singletonSettings.GeneralSettings.EnableOL = EnableOL.Checked; // Highliht selected word singletonSettings.HighlightWord.BackColor = propHighlightWord.BackColor; singletonSettings.HighlightWord.FrameColor = propHighlightWord.FrameColor; singletonSettings.HighlightWord.SelectedWord = SelectedCB.Checked; // 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(); }
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; }
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; SelectedCB.Checked = singletonSettings.HighlightWord.SelectedWord; EnableBM.Checked = singletonSettings.GeneralSettings.EnableBM; EnableCL.Checked = singletonSettings.GeneralSettings.EnableCL; EnableWH.Checked = singletonSettings.GeneralSettings.EnableWH; EnableOL.Checked = singletonSettings.GeneralSettings.EnableOL; }
private void LoadSettings() { EditorSettings settings = EditorSettings.getInstance(); EnableBM = settings.GeneralSettings.EnableBM; }