コード例 #1
0
ファイル: Config.cs プロジェクト: wderoo/PieMan
 public Configuration(Account account, Profile profile, Settings settings)
 {
     this.Account = account;
     this.Profile = profile;
     this.Settings = settings;
 }
コード例 #2
0
 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;
 }