protected override void Init() { base.Init(); if (_webPartProvider == null) _webPartProvider = new WebPartProvider(); if (_webpartCategoryProvider == null) _webpartCategoryProvider = new WebPartCategoryProvider(); if (IsEdit) { Title = "Edit WebPart | Frebo Cms"; ltlTitle.Text = "Edit WebPart"; } else { this.Title = "New WebPart| Frebo Cms"; ltlTitle.Text = "New WebPart"; } }
protected override void Init() { base.Init(); if (_layoutProvider == null) _layoutProvider = new LayoutProvider(); if (_layoutWebPartZoneProvider == null) _layoutWebPartZoneProvider = new LayoutWebPartZoneProvider(); if (_webPartProvider == null) _webPartProvider = new WebPartProvider(); if (_blockProvider == null) _blockProvider = new BlockProvider(); if (_layoutNBlockProvider == null) _layoutNBlockProvider = new LayoutNBlockProvider(); if (_localizationProvider == null) _localizationProvider = new LocalizationProvider(); if (IsEdit) { Title = "Edit Block | " + CoreSettings.CurrentSite.Name; ltlTitle.Text = "Edit Block"; } else { Title = "New Block | " + CoreSettings.CurrentSite.Name; ltlTitle.Text = "New Block"; } FillLanguages(); }