TryLoad() 공개 정적인 메소드

public static TryLoad ( string path ) : System.Xml.Linq.XElement
path string
리턴 System.Xml.Linq.XElement
예제 #1
0
        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();
            }
        }
예제 #2
0
 public static void LoadTheme(string xmlFile)
 {
     _themeXel = Tools.TryLoad(Path.Combine(UserSettings.ThemesDir, xmlFile));
     FilePath  = Path.Combine(UserSettings.ThemesDir, xmlFile);
 }