Beispiel #1
0
 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
     }));
 }
Beispiel #2
0
 private void LoadLocations()
 {
     gvLocations.DataSource = Wizard.GetLocations();
     gvLocations.DataBind();
 }
Beispiel #3
0
 private IEnumerable <Items.MagicLocation> GetLocations()
 {
     return(wizard.GetLocations()
            .Where(m => m.Location != null));
 }