using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Text;

namespace ExtAspNet.Examples.layout
{
    public partial class panel : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

            }
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Alert.ShowInTop(String.Format("Panel is {0}", Panel1.Expanded ? "Expanded" : "Collapsed"));
        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            ContentPanel1.Expanded = !ContentPanel1.Expanded;
        }

        protected void Button4_Click(object sender, EventArgs e)
        {
            Panel1.Title = "Panel " + DateTime.Now.ToLongTimeString();
        }

        protected void Button5_Click(object sender, EventArgs e)
        {
            ToolbarText1.Text = "Toolbar text 1 " + DateTime.Now.ToLongTimeString();
        }

        protected void Button6_Click(object sender, EventArgs e)
        {
            ToolbarText1.Hidden = !ToolbarText1.Hidden;
            ToolbarSeparator1.Hidden = !ToolbarSeparator1.Hidden;
        }
    }
}
