protected override void OnLoad(LoadModuleEventArgs e) { if(this.InternalLocation.ToLower() == "edit.aspx") e.CenterTop.Add(new Edit()); else Context.Response.Redirect(Properties["ExternalURL"]); }
protected override void OnLoad(LoadModuleEventArgs e) { #if DEBUG Context.Trace.Write("StaticModule", "QueryString Edit Present: " + (Context.Request.QueryString["edit"] != null)); #endif // checks to see if user is an administrator and is in edit mode if (Context.Request.QueryString["edit"] != null && IsInTask("Editor")) e.CenterTop.Add(new Edit()); else { // add edit button for users with access to edit if (IsInTask("Editor")) { HyperLink editLink = new HyperLink(); editLink.Text = "Edit This Page's Content"; editLink.NavigateUrl = Common.Path.GetPortalUrl("Edit.aspx").ToString(); // add link to page e.CenterTop.AddAt(0, editLink); } // add body of page e.CenterTop.Add(new LiteralControl(this.Properties["Content"])); } }
protected override void OnLoad(LoadModuleEventArgs e) { // add the blog style sheet to the page. Common.PageBuilder.StyleSheets.Add(this.GetUrlPath("blog.css").ToString()); // check to see if the current has a role with the task of Poster if (this.IsInTask("Poster")) { // add admin links section to the portlets. e.GetHolder(0).Add(this.CreatePortlet(1, "Admin Links", this.GetControl("Portlets/Admin.ascx"))); } // add public links section to the protlets e.GetHolder(0).Add(this.CreatePortlet(2, (this.IsInTask("Poster") ? "Public " : String.Empty) + "Links", this.GetControl("Portlets/Public.ascx"))); // add calendar to the portlets e.GetHolder(0).Add(this.CreatePortlet(3, "Archive Calendar", this.GetControl("Portlets/Calendar.ascx"))); base.OnLoad (e); }
private void HandleLoadMod(object sender, LoadModuleEventArgs args) { this.ApplyDllPatches(args.ImageName, args.BaseOffset); args.EventStatus = DebugStatus.Go; }
protected override void OnLoad(LoadModuleEventArgs e) { e.CenterTop.Add(new Summary()); }
/// <summary> /// 加载子系统及菜单数据完成事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Managed_OnLoadModuleCompleted(object sender, LoadModuleEventArgs e) { }
/// <summary>Occurs when the module holders are getting populated with the module controls.</summary> /// <param name="e">Events.</param> protected virtual void OnLoad(LoadModuleEventArgs e) { if (Load != null) Load(this, e); }
/// <summary></summary> public void ProcessRequest() { ManagedFusion.Modules.Configuration.ConfigurationPage page = null; // checks to see if the center module has anything added to it if (this.Config.Pages != null) { page = this.Config.FindPage(InternalLocation); // an alternative handler is being loaded so no futher processing has to be done if (page.Handler != null) return; } // executes the correct even depending on if we are creating a page or syndication if (SectionInformation.Syndicated && Context.Request.Url.Query.ToLower().IndexOf("feed") > -1) { LoadSyndicationEventArgs pcea = new LoadSyndicationEventArgs(this._syndication); this.OnLoadSyndication(pcea); } else { Content beforeModule = new Content(); Content afterModule = new Content(); // setup content holders LoadModuleEventArgs phea = new LoadModuleEventArgs( this._holders, beforeModule, afterModule ); this.OnLoad(phea); #region Controls Before the Module // add the controls that are before the module if (beforeModule.Controls.Count > 0) this._centerHolder.Controls.Add(beforeModule); // center pane foreach (ContainerInfo c in this.SectionInformation.Containers.GetContainersForPosition((int)CenterPosition.BeforeModule)) this._centerHolder.Controls.Add(new ContainerHolder(c)); #endregion // checks to see if the center module has anything added to it if (page != null && page.Control != null) { // load current control according to the page address foreach (Control c in GetControls(page)) this._centerHolder.Controls.Add(c); } #region Controls After the Module // add the controls that are after the module if (afterModule.Controls.Count > 0) this._centerHolder.Controls.Add(afterModule); // center pane foreach (ContainerInfo c in this.SectionInformation.Containers.GetContainersForPosition((int)CenterPosition.AfterModule)) this._centerHolder.Controls.Add(new ContainerHolder(c)); #endregion // configure the containers this.ConfigureContainers(); } }
private void _debuggee_ModuleLoaded(object sender, LoadModuleEventArgs e) { HandleIfBroken(DebugTrigger.LoadModule, e); e.Status = DebugStatus.Go; }
private void _debuggee_PreModuleLoaded(object sender, LoadModuleEventArgs e) { BreakIfHandled(DebugTrigger.LoadModule, e); }