using System;
using System.Data;
using System.Configuration;
using System.Collections.Generic;
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 ImageTemplateNet;

/// <summary>
/// Shows the config settings from web.config that are used by image template.net
/// </summary>
public partial class admin_Config : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        List<System.Collections.Generic.KeyValuePair<string, string>> list = new List<KeyValuePair<string, string>>();
        ImageTemplateConfiguration config = ImageTemplateConfiguration.Instance;
        list.Add ( new KeyValuePair<string,string>("ConfigFilePath",config.ConfigFilePath));
        list.Add ( new KeyValuePair<string,string>("ImageCacheDirectoryPath",config.ImageCacheDirectoryPath));
        list.Add ( new KeyValuePair<string,string>("DefaultCacheTimeSeconds",config.DefaultCacheTimeSeconds.ToString()));
        configRepeater.DataSource = list;
        configRepeater.DataBind();
    }
}
