コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            using (Crafted.Configuration.Config <WebConfig> c = new Crafted.Configuration.Config <WebConfig>()) {
                c.Values.MyConfigValue     = DateTime.Now.ToShortTimeString();
                c.Values.Something.Content = "Other";
                c.Save();
            }

            using (Crafted.Configuration.Config <WebConfig> c = new Crafted.Configuration.Config <WebConfig>()) {
                litConfig.Text = c.Values.Something.ToString();
            }
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e) {
            
            using(Crafted.Configuration.Config<WebConfig> c = new Crafted.Configuration.Config<WebConfig>()) {
                c.Values.MyConfigValue = DateTime.Now.ToShortTimeString();
                c.Values.Something.Content = "Other";
                c.Save();
            }
            
            using(Crafted.Configuration.Config<WebConfig> c = new Crafted.Configuration.Config<WebConfig>()) {
                litConfig.Text = c.Values.Something.ToString();
            }

        }