/// <Summary>
 /// Function implementing IPostBackEventHandler which allows the ASP.NET page to invoke
 /// the control's events
 /// </Summary>
 public virtual void RaisePostBackEvent( string strEventArgument )
 {
     ClientAPIPostBackEventArgs clientAPIPostBackEventArgs1 = new ClientAPIPostBackEventArgs( strEventArgument );
     if( this.get_EventHandlers( clientAPIPostBackEventArgs1.EventName ) == null )
     {
         return;
     }
     this.get_EventHandlers( clientAPIPostBackEventArgs1.EventName )( clientAPIPostBackEventArgs1 );
 }
Esempio n. 2
0
        /// <Summary>
        /// Function implementing IPostBackEventHandler which allows the ASP.NET page to invoke
        /// the control's events
        /// </Summary>
        public virtual void RaisePostBackEvent(string strEventArgument)
        {
            ClientAPIPostBackEventArgs clientAPIPostBackEventArgs1 = new ClientAPIPostBackEventArgs(strEventArgument);

            if (this.get_EventHandlers(clientAPIPostBackEventArgs1.EventName) == null)
            {
                return;
            }
            this.get_EventHandlers(clientAPIPostBackEventArgs1.EventName)(clientAPIPostBackEventArgs1);
        }
Esempio n. 3
0
        /// -----------------------------------------------------------------------------
        /// <summary>
        /// ModuleMoveToPanePostBack excutes when a module is moved by Drag-and-Drop
        /// </summary>
        /// <param name="args">A ClientAPIPostBackEventArgs object</param>
        /// <history>
        /// 	[cnurse]	12/05/2007	Moved from Skin.vb
        /// </history>
        /// -----------------------------------------------------------------------------
        private void ModuleMoveToPanePostBack(ClientAPIPostBackEventArgs args)
        {
            var portalSettings = (PortalSettings)HttpContext.Current.Items["PortalSettings"];
            if (TabPermissionController.CanAdminPage())
            {
                var moduleId = Convert.ToInt32(args.EventArguments["moduleid"]);
                var paneName = Convert.ToString(args.EventArguments["pane"]);
                var moduleOrder = Convert.ToInt32(args.EventArguments["order"]);

                ModuleController.Instance.UpdateModuleOrder(portalSettings.ActiveTab.TabID, moduleId, moduleOrder, paneName);
                ModuleController.Instance.UpdateTabModuleOrder(portalSettings.ActiveTab.TabID);

                //Redirect to the same page to pick up changes
                PaneControl.Page.Response.Redirect(PaneControl.Page.Request.RawUrl, true);
            }
        }
Esempio n. 4
0
        private void ModuleMoveToPanePostBack( ClientAPIPostBackEventArgs args )
        {
            PortalSettings portalSettings = (PortalSettings)HttpContext.Current.Items["PortalSettings"];
//            if (PortalSecurity.IsInRole(portalSettings.AdministratorRoleName.ToString()) || PortalSecurity.IsInRoles(portalSettings.ActiveTab.AdministratorRoles.ToString()))
            {
                int intModuleID = Convert.ToInt32(args.EventArguments["moduleid"]);
                string strPaneName = args.EventArguments["pane"].ToString();
                int intOrder = Convert.ToInt32(args.EventArguments["order"]);
                ModuleController objModules = new ModuleController();

                objModules.UpdateModuleOrder(portalSettings.ActiveTab.TabID, intModuleID, intOrder, strPaneName);
                objModules.UpdateTabModuleOrder(portalSettings.ActiveTab.TabID, portalSettings.ActiveTab.PortalID);

                // Redirect to the same page to pick up changes
                Response.Redirect(Request.RawUrl, true);
            }
        }