public IEnumerable <ToolbarOption> GetAll() { return(wizard.GetLocations() .Where(m => m.Location != null) .Select((m, i) => new ToolbarOption { Title = m.Title, Target = Targets.Preview, SortOrder = i, Name = m.Name, Url = editUrlManager.GetEditNewPageUrl(m.Location, m.GetDefinition(definitions), m.ZoneName, CreationPosition.Below) + "&template=" + m.ContentTemplate })); }
private void LoadLocations() { gvLocations.DataSource = Wizard.GetLocations(); gvLocations.DataBind(); }
private IEnumerable <Items.MagicLocation> GetLocations() { return(wizard.GetLocations() .Where(m => m.Location != null)); }