public System.Collections.Generic.IEnumerable <ToolbarOption> GetAll() { return(new ToolbarOption[] { new ToolbarOption { Title = "View published", Target = Targets.Top, SortOrder = 0, Name = "Published", Url = editUrlManager.GetEditInterfaceUrl(ViewPreference.Published).ToUrl().AppendQuery(PathData.SelectedQueryKey + "={selected}"), Selected = webContext.HttpContext.GetViewPreference(defaultViewPreference) == ViewPreference.Published }, new ToolbarOption { Title = "Preview drafts", Target = Targets.Top, SortOrder = 1, Name = "Draft", Url = editUrlManager.GetEditInterfaceUrl(ViewPreference.Draft).ToUrl().AppendQuery(PathData.SelectedQueryKey + "={selected}"), Selected = webContext.HttpContext.GetViewPreference(defaultViewPreference) == ViewPreference.Draft } }); }
public string GetEditInterfaceUrl() { return(urls.GetEditInterfaceUrl()); }