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

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

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