SiteSetting.cs

// Copyright � 2007 Jeffrey Bazinet, http://www.vwd-cms.com/
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections;

namespace VwdCms.Configuration
{
    public class SiteSetting
    {
        private string _key = string.Empty;
        private string _value = string.Empty;
        public CmsConfig CmsConfig = null;

        public SiteSetting(CmsConfig cmsconfig, System.Xml.XmlNode node)
        {
            this.CmsConfig = cmsconfig;
            this.Key = CmsConfig.GetChildNodeInnerText(node, "key", cmsconfig);
            this.Value = CmsConfig.GetChildNodeInnerText(node, "value", cmsconfig);
        }

        public string Key
        {
            get { return _key; }
            set { _key = value; }
        }

        public string Value
        {
            get { return _value; }
            set { _value = value; }
        }
    }
}