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