private bool EditorExists(string controlName) { var result = false; Control editorControl; editorControl = HccPartController.LoadContentBlockEditor(controlName.Replace(" ", string.Empty), Page); if (editorControl != null) { if (editorControl is HccPart) { result = true; } } return(result); }
private void LoadEditor() { var editor = HccPartController.LoadContentBlockEditor(Block.ControlName.Replace(" ", string.Empty), this) as HccContentBlockPart; if (editor != null) { editor.BlockId = Block.Bvin; TitleLabel.Text = "Edit Content Block - " + Block.ControlName; phEditor.Controls.Add(editor); } else { msg.ShowError("Error, editor is not based on HccContentBlockPart class"); } editor.EditingComplete += editor_EditingComplete; }