public Configuration(Account account, Profile profile, Settings settings) { this.Account = account; this.Profile = profile; this.Settings = settings; }
public Settings PostSetting(Settings setting) { string filename = HostingEnvironment.MapPath("~/App_Plugins/PieMan/settings.config"); XmlDocument xmlDocument = new XmlDocument(); xmlDocument.Load(filename); XmlNode xmlNode = xmlDocument.SelectSingleNode("//Settings/" + setting.Key); if (xmlNode != null) xmlNode.InnerText = setting.Value; xmlDocument.Save(filename); return setting; }