Esempio n. 1
0
 private void SaveSettings()
 {
     Document document = new Document();
     Element element = new Element("Settings");
     Element element2 = new Element("Login");
     element2.get_ChildNodes().Add(new Element("Jid", this.txtJid.Text));
     element2.get_ChildNodes().Add(new Element("Password", this.txtPassword.Text));
     element2.get_ChildNodes().Add(new Element("Resource", this.txtResource.Text));
     element2.get_ChildNodes().Add(new Element("Priority", this.numPriority.Value.ToString()));
     element2.get_ChildNodes().Add(new Element("Port", this.txtPort.Text));
     element2.get_ChildNodes().Add(new Element("Ssl", this.chkSSL.Checked));
     document.get_ChildNodes().Add(element);
     element.get_ChildNodes().Add(element2);
     document.Save(this.SettingsFilename);
 }