Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 13th, 2012  |  syntax: C#  |  size: 1.16 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. XDocument file = new XDocument(
  2.                 new XElement("Paths",
  3.                     new XElement("NewEmployee", txbNew.Text),
  4.                     new XElement("PauseEmployee", txbPausa.Text),
  5.                     new XElement("DeleteEmployee", txbDelete.Text)
  6.                     ),
  7.                 new XElement("Email",
  8.                     new XElement("Data",
  9.                         new XAttribute("Port", txbDataPor.Text),
  10.                         new XAttribute("Host", txbDataHost.Text),
  11.                         new XAttribute("Username", txbDataUser.Text),
  12.                         new XAttribute("Password", txbDataPass.Text),
  13.                         new XAttribute("EnableSsl", dataSsl)
  14.                         ),
  15.                     new XElement("Support",
  16.                         new XAttribute("Port", txbSupPor.Text),
  17.                         new XAttribute("Host", txbSupHost.Text),
  18.                         new XAttribute("Username", txbSupUser.Text),
  19.                         new XAttribute("Password", txbSupPass.Text),
  20.                         new XAttribute("EnableSsl", supSsl)
  21.                         )
  22.                 ),
  23.                 new XElement("PhotoPath", txbPhoto.Text)
  24.                 );