public Log(string file_name) { this.xml = new Xml(file_name); //add current date log this.root = this.xml.CreateNode("log[]"); this.root.SetAttribute("date", DateTime.Now.ToString(LmUtils.ConvertUtilities.LmDateTimeLongFormat)); this.Save(); }
public Config(string filename) { this.inited = false; this.xml = new Xml(filename); this.xml.ThisCanThrowExeptions = true; this.Reload(); this.inited = true; }
public XmlElement CreateNode(string path) { return(Xml.CreateNode(this.Root, path)); }
public XmlNodeList GetNodes(string path) { return(Xml.GetNodes(this.Root, path)); }
public XmlElement GetNode(string path) { return(Xml.GetNode(this.Root, path)); }
public void Reload() { xml = new Xml(Path.Combine(LangPath, Program.config.LangFileName)); xml.ThisCanThrowExeptions = true; xml.Reload(); }