Beispiel #1
0
        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();
        }
Beispiel #2
0
        public Config(string filename)
        {
            this.inited = false;

            this.xml = new Xml(filename);
            this.xml.ThisCanThrowExeptions = true;
            this.Reload();

            this.inited = true;
        }
Beispiel #3
0
 public XmlElement CreateNode(string path)
 {
     return(Xml.CreateNode(this.Root, path));
 }
Beispiel #4
0
 public XmlNodeList GetNodes(string path)
 {
     return(Xml.GetNodes(this.Root, path));
 }
Beispiel #5
0
 public XmlElement GetNode(string path)
 {
     return(Xml.GetNode(this.Root, path));
 }
Beispiel #6
0
 public void Reload()
 {
     xml = new Xml(Path.Combine(LangPath, Program.config.LangFileName));
     xml.ThisCanThrowExeptions = true;
     xml.Reload();
 }