public void ReloadSettings() { _configs = TextEditorConfigs.Load(); BackColor = ColorTranslator.FromHtml(_configs.ClassicScript.ColorScheme.Background); ForeColor = ColorTranslator.FromHtml(_configs.ClassicScript.ColorScheme.Values.HtmlColor); DoSyntaxHighlighting(); }
public FormTextEditorSettings() { InitializeComponent(); _configs = TextEditorConfigs.Load(); _configsCopy = TextEditorConfigs.Load(); settingsClassicScript.Initialize(_configs.ClassicScript); DarkTreeNode classicScriptNode = new DarkTreeNode("Classic Script"); DarkTreeNode luaNode = new DarkTreeNode("Lua"); treeView.Nodes.Add(classicScriptNode); treeView.Nodes.Add(luaNode); treeView.SelectNode(classicScriptNode); }