public void Save()
{
XmlSerializer xml = new XmlSerializer(typeof(Configuration));
try
{
using (TextWriter writer = new StreamWriter(iPath))
{
xml.Serialize(writer, this);
}
}
catch (Exception e)
{
throw (new ApplicationException("Unable to save configuration file", e));
}
}