Beispiel #1
0
        private void Remove_Template(string PageIndexID)
        {
            Page_PropertyMgr myPropertyMgr = new Page_PropertyMgr();

            if (myPropertyMgr.Chk_Page_Template(PageIndexID))
            {
                myPropertyMgr.Remove_Page_Template(PageIndexID);
            }
        }
Beispiel #2
0
        private void Edit_Template(string PageIndexID)
        {
            Page_PropertyMgr myPropertyMgr = new Page_PropertyMgr();

            // Page Index
            e2Data[] UpdateData =
            {
                new e2Data("PageIndexID",       PageIndexID),
                new e2Data("MasterPageIndexID", droplist_Template.SelectedValue)                       // Get from Select Template list
            };

            if (myPropertyMgr.Chk_Page_Template(PageIndexID))
            {
                myPropertyMgr.Edit_Page_Template(UpdateData);
            }
            else
            {
                myPropertyMgr.Add_Page_Template(UpdateData);
            }
        }