protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     var extensionPointManager = new ExtensionPointManager();
     
     if (!String.IsNullOrEmpty(Name))
     {
         var extension = extensionPointManager.GetEditPagePanelExtensionPointFirstByPriority(Module, Name);
         LoadControl(extension);
     }
     else
     {
         foreach (var extension in extensionPointManager.GetEditPagePanelExtensionPoints(Module, Group))
         {
             LoadControl(extension);
         }
     }
 }
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            var extensionPointManager = new ExtensionPointManager();

            if (!String.IsNullOrEmpty(Name))
            {
                var extension = extensionPointManager.GetEditPagePanelExtensionPointFirstByPriority(Module, Name);
                LoadControl(extension);
            }
            else
            {
                foreach (var extension in extensionPointManager.GetEditPagePanelExtensionPoints(Module, Group))
                {
                    LoadControl(extension);
                }
            }
        }
예제 #3
0
        /// <inheritdoc/>
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            var extensionPointManager = new ExtensionPointManager();

            if (!string.IsNullOrEmpty(this.Name))
            {
                var extension = extensionPointManager.GetEditPagePanelExtensionPointFirstByPriority(this.Module, this.Name);
                if (extension != null)
                {
                    this.LoadControl(extension);
                }
            }
            else
            {
                foreach (var extension in extensionPointManager.GetEditPagePanelExtensionPoints(this.Module, this.Group))
                {
                    if (extension != null)
                    {
                        this.LoadControl(extension);
                    }
                }
            }
        }