private void LoadEditor() { System.Web.UI.Control tempControl = ModuleController.LoadCreditCardGatewayEditor(g.Name, this); if (tempControl is BVModule) { editor = (BVModule)tempControl; if (editor != null) { editor.BlockId = g.Id; this.phEditor.Controls.Add(editor); this.editor.EditingComplete += this.editor_EditingComplete; } } else { this.phEditor.Controls.Add(new System.Web.UI.LiteralControl("Error, editor is not based on Content.BVModule class")); } }
private void LoadEditor() { System.Web.UI.Control tempControl = ModuleController.LoadContentBlockEditor(b.ControlName.Replace(" ",""), this); if (tempControl is BVModule) { editor = (BVModule)tempControl; if (editor != null) { editor.BlockId = b.Bvin; this.TitleLabel.Text = "Edit Block - " + b.ControlName; editor.MyPage.MTApp = MTApp; this.phEditor.Controls.Add(editor); } } else { this.phEditor.Controls.Add(new System.Web.UI.LiteralControl("Error, editor is not based on Content.BVModule class")); } this.editor.EditingComplete += this.editor_EditingComplete; }