public void Edit_Page_Control_Properties_AdvanceMode(string Page_ControlID, Control_Property[] Update_Properties, string Current_UserID) { Pages.PageMgr myPageMgr = new Pages.PageMgr(); myPageMgr.Remove_Page_Control_Properties(Page_ControlID); foreach (Control_Property Update_Property in Update_Properties) { e2Data[] UpdateData = { new e2Data("Page_ControlID", Update_Property.Page_ControlID), new e2Data("Property_Name", Update_Property.Property_Name), new e2Data("Property_Value", Update_Property.Property_Value) }; myPageMgr.Add_Page_Property(UpdateData); } // Update Page Version Page_Control myPage_Control = myPageMgr.Get_Page_Control(Page_ControlID); e2Data[] UpdateData_PageVersion = { new e2Data("PageID", myPage_Control.PageID), new e2Data("LastUpdate_Date", DateTime.Now.ToString()), new e2Data("LastUpdate_UserID", Current_UserID) }; myPageMgr.Edit_Page(UpdateData_PageVersion); }
public void Add_Page_Control_Properties_AdvanceMode(Control_Property[] Update_Properties) { foreach (Control_Property Update_Property in Update_Properties) { e2Data[] UpdateData = { new e2Data("Page_ControlID", Update_Property.Page_ControlID), new e2Data("Property_Name", Update_Property.Property_Name), new e2Data("Property_Value", Update_Property.Property_Value) }; Pages.PageMgr myPageMgr = new Pages.PageMgr(); myPageMgr.Add_Page_Property(UpdateData); } }
public void Edit_Page_Control_Properties_AdvanceMode(string Page_ControlID, Control_Property[] Update_Properties) { Pages.PageMgr myPageMgr = new Pages.PageMgr(); myPageMgr.Remove_Page_Control_Properties(Page_ControlID); foreach (Control_Property Update_Property in Update_Properties) { e2Data[] UpdateData = { new e2Data("Page_ControlID", Update_Property.Page_ControlID), new e2Data("Property_Name", Update_Property.Property_Name), new e2Data("Property_Value", Update_Property.Property_Value) }; myPageMgr.Add_Page_Property(UpdateData); } }