private void SetValue(string element, string attribute, object value) { if (_xel == null) { _xel = Tools.TryLoad(FilePath); } var xElement = _xel.Element(element); if (xElement != null) { xElement.Attribute(attribute).Value = value.ToString(); } }
public static void LoadTheme(string xmlFile) { _themeXel = Tools.TryLoad(Path.Combine(UserSettings.ThemesDir, xmlFile)); FilePath = Path.Combine(UserSettings.ThemesDir, xmlFile); }