protected override void OnLoad(EventArgs e)
        {
            Assert.ArgumentNotNull(e, "e");
            base.OnLoad(e);
            Assert.CanRunApplication("Redirect Manager");

            var allRedirects = Repository.GetAll();

            ComponentArtGridHandler <UrlRedirect> .Manage(this.Redirects, new GridSource <UrlRedirect>(allRedirects), !base.IsPostBack);
        }
        protected override void OnLoad(EventArgs e)
        {
            Assert.ArgumentNotNull((object)e, nameof(e));
            ShellPage.IsLoggedIn(true);
            base.OnLoad(e);
            ComponentArtGridHandler <PublishActivityItem> .Manage(this.PublishActivityGrid, (IGridSource <PublishActivityItem>) new GridSource <PublishActivityItem>(repository.GetAllPublishingItems()), this.RebindRequired);

            this.PublishActivityGrid.LocalizeGrid();
            this.WriteLanguageAndBrowserCssClass();
        }
        protected override void OnLoad(EventArgs e)
        {
            Assert.ArgumentNotNull(e, "e");
            base.OnLoad(e);
            this.RepositoryName = StringUtil.GetString(new[] { WebUtil.GetQueryString("an", "recyclebin") });
            var archiveEntries = this.GetSnapshotEntries();

            ComponentArtGridHandler <SnapshotPoint> .Manage(this.Items, new GridSource <SnapshotPoint>(archiveEntries), !AjaxScriptManager.IsEvent);

            this.Items.LocalizeGrid();
        }
예제 #4
0
        protected override void OnLoad(EventArgs e)
        {
            Assert.ArgumentNotNull(e, "e");
            base.OnLoad(e);
            //Assert.CanRunApplication("Security/User Manager");
            IEnumerable <RedirectGridEntry> redirects = RedirectManager.GetRedirects().ToList().Select(re => new RedirectGridEntry(re));

            ComponentArtGridHandler <RedirectGridEntry> .Manage(this.Redirects, new GridSource <RedirectGridEntry>(redirects), this.RebindRequired);

            this.Redirects.LocalizeGrid();
        }
예제 #5
0
        /// <summary>
        /// Raises the <see cref="E:System.Web.UI.Control.Load"></see> event.
        /// </summary>
        /// <param name="e">
        /// The <see cref="T:System.EventArgs"></see> object that contains the event data.
        /// </param>
        protected override void OnLoad(EventArgs e)
        {
            Assert.ArgumentNotNull(e, "e");
            base.OnLoad(e);
            Assert.CanRunApplication("Cache Manager");

            var cacheEntries = GetCacheEntries();

            ComponentArtGridHandler <CacheEntry> .Manage(Items, new GridSource <CacheEntry>(cacheEntries), !AjaxScriptManager.IsEvent);

            Items.LocalizeGrid();
        }
예제 #6
0
        /// <summary>
        /// Fills the grid.
        /// </summary>
        /// <param name="source">The source.</param>
        public void FillGrid(IGridSource <List <string> > source)
        {
            if (this.doEncode)
            {
                foreach (GridColumn column in this.Grid.Levels[0].Columns)
                {
                    column.DataField = HttpUtility.UrlEncode(column.DataField);
                }

                this.doEncode = false;
            }

            ComponentArtGridHandler <List <string> > .Manage(this.Grid, source, false);
        }
 protected override void OnLoad(EventArgs e)
 {
     Assert.ArgumentNotNull(e, "e");
     base.OnLoad(e);
     if (!VersionManager.IsDisabled)
     {
         this.GridContainer.Visible = true;
         this.Disabled.Visible      = false;
         Sitecore.Context.ClientPage.Controls.Remove(this.Disabled);
         Assert.CanRunApplication("Versions/Version Manager");
         List <GridItem> itemEntry = new List <GridItem>();
         itemEntry = VersionManager.GetGridItem();
         Assert.IsNotNull(itemEntry, "itemEntry");
         ComponentArtGridHandler <GridItem> .Manage(this.itemsGrid, new GridSource <GridItem>(itemEntry), !XamlControl.AjaxScriptManager.IsEvent);
     }
     else
     {
         this.GridContainer.Visible = false;
         this.Disabled.Visible      = true;
     }
 }
        protected override void OnLoad(EventArgs e)
        {
            Assert.ArgumentNotNull(e, "e");
            base.OnLoad(e);
            SheerResponse.RegisterTranslation("Please select a role", "Select a role.");
            SheerResponse.RegisterTranslation("Selected roles are already in the Recipient List", "Selected roles are already in the Recipient List");

            IEnumerable <Role> managedRoles = Sitecore.Context.User.Delegation.GetManagedRoles(false);

            ComponentArtGridHandler <Role> .Manage(this.Roles, new GridSource <Role>(managedRoles), !XamlControl.AjaxScriptManager.IsEvent);

            if (!XamlControl.AjaxScriptManager.IsEvent)
            {
                if (RecipientList != null)
                {
                    string list = RecipientList.InnerItem["Opt-in Role"] + "|" + RecipientList.InnerItem["Extra Opt-in Roles"];

                    foreach (string str2 in new ListString(list))
                    {
                        if (!String.IsNullOrEmpty(str2))
                        {
                            if (System.Web.Security.Roles.RoleExists(str2))
                            {
                                this.SelectedRoles.Items.Add(str2);
                            }
                        }
                    }
                    if (!string.IsNullOrEmpty(list))
                    {
                        this.SelectedValues.Value = list;
                    }
                }
                this.Roles.ClientEvents.ItemDoubleClick = new ClientEvent("onDoubleClick");
                this.Roles.LocalizeGrid();
            }
        }
예제 #9
0
 /// <summary>
 /// Fills the grid.
 /// </summary>
 /// <param name="data">The grid data.</param>
 public void FillGrid(GridData data)
 {
     ComponentArtGridHandler <List <string> > .Manage(this.Grid, new GridSource <List <string> >(data.Rows), false);
 }