コード例 #1
0
ファイル: PollController.cs プロジェクト: shiyibin/wojilu
        public List <IPageSettingLink> GetSettingLink(int sectionId)
        {
            List <IPageSettingLink> links = new List <IPageSettingLink>();

            PageSettingLink lnk = new PageSettingLink();

            lnk.Name = lang("editSetting");
            lnk.Url  = to(new SectionSettingController().EditCount, sectionId);
            links.Add(lnk);

            return(links);
        }
コード例 #2
0
        private IList getAutoBinderSettingLinks(ContentSection section)
        {
            IList setttingLinks = new ArrayList();

            PageSettingLink slink = new PageSettingLink();

            slink.Name = lang("editSetting");
            slink.Url  = to(new SectionSettingController().EditBinder, section.Id);
            setttingLinks.Add(slink);

            PageSettingLink lnktmp = new PageSettingLink();

            lnktmp.Name = alang("editTemplate");
            lnktmp.Url  = to(new TemplateCustomController().EditBinder, section.Id);
            setttingLinks.Add(lnktmp);

            return(setttingLinks);
        }
コード例 #3
0
        public List <IPageSettingLink> GetSettingLink(int sectionId)
        {
            List <IPageSettingLink> links = new List <IPageSettingLink>();

            PageSettingLink lnk = new PageSettingLink();

            lnk.Name = lang("editSetting");
            lnk.Url  = to(new SectionSettingController().Edit, sectionId);
            links.Add(lnk);

            PageSettingLink lnktmp = new PageSettingLink();

            lnktmp.Name = alang("editTemplate");
            lnktmp.Url  = to(new TemplateCustomController().Edit, sectionId);
            links.Add(lnktmp);

            return(links);
        }