public Config GetConfig() { XmlElement root = document[ROOT]; int x = int.Parse(root["swsize"].FirstChild.InnerText); int y = int.Parse(root["swsize"].LastChild.InnerText); string lc = root["lettercolor"].FirstChild.InnerText; string tc = root["themecolor"].FirstChild.InnerText; StartWindowSize size = new StartWindowSize(x, y); Config config = new Config(size, lc, tc); return(config); }
public Config(StartWindowSize coords, string lc, string tc) { SWSize = coords; LetterColor = Color.FromName(lc); ThemeColor = Color.FromName(tc); }