예제 #1
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            stylesheetproperty = new cms.businesslogic.web.StylesheetProperty(int.Parse(Request.QueryString["id"]));
            Panel1.Text        = ui.Text("stylesheet", "editstylesheetproperty", base.getUser());

            if (!IsPostBack)
            {
                stylesheetproperty.RefreshFromFile();
                NameTxt.Text  = stylesheetproperty.Text;
                Content.Text  = stylesheetproperty.value;
                AliasTxt.Text = stylesheetproperty.Alias;

                ClientTools
                .SetActiveTreeType(TreeDefinitionCollection.Instance.FindTree <loadStylesheetProperty>().Tree.Alias)
                .SyncTree(helper.Request("id"), false);
            }

            ImageButton bt = Panel1.Menu.NewImageButton();

            bt.Click        += new System.Web.UI.ImageClickEventHandler(save_click);
            bt.ImageUrl      = UmbracoPath + "/images/editor/Save.GIF";
            bt.AlternateText = ui.Text("save");
            bt.ID            = "save";
            setupPreView();
        }
		protected void Page_Load(object sender, System.EventArgs e)
		{
			stylesheetproperty = new cms.businesslogic.web.StylesheetProperty(int.Parse(Request.QueryString["id"]));
            Panel1.Text = ui.Text("stylesheet", "editstylesheetproperty", base.getUser());

            if (!IsPostBack) {
                stylesheetproperty.RefreshFromFile();
                NameTxt.Text = stylesheetproperty.Text;
                Content.Text = stylesheetproperty.value;
                AliasTxt.Text = stylesheetproperty.Alias;

				ClientTools
					.SetActiveTreeType(TreeDefinitionCollection.Instance.FindTree<loadStylesheetProperty>().Tree.Alias)
					.SyncTree(helper.Request("id"), false);
            }		
		
			ImageButton bt = Panel1.Menu.NewImageButton();
			bt.Click += new System.Web.UI.ImageClickEventHandler(save_click);
			bt.ImageUrl = UmbracoPath +"/images/editor/save.gif";
			bt.AlternateText = ui.Text("save");
		    bt.ID = "save";
			setupPreView();
		}