////////////////////////////////////////////////////////////////////////// public void LoadSettings(SettingsNode RootNode) { SettingsNode Section = RootNode.GetNode("General", true); if (Section == null) { return; } SelectionColor = Section.GetColor("SelectionColor", SelectionColor); BoxColor = Section.GetColor("BoxColor", BoxColor); WindowCanvas.BackColor = Section.GetColor("BackgroundColor", WindowCanvas.BackColor); GridSize = new Size(Section.GetInt("GridWidth", GridSize.Width), Section.GetInt("GridHeight", GridSize.Height)); _RecentFiles.Clear(); SettingsNode RecentList = Section.GetNode("RecentFiles"); if (RecentList != null) { foreach (SettingsNode Node in RecentList.Children) { string RecentFile = Node.GetString(); if (File.Exists(RecentFile)) { _RecentFiles.Add(RecentFile); } } } }