当前位置: 首页>>代码示例>>C#>>正文


C# IBlock.Next方法代码示例

本文整理汇总了C#中IBlock.Next方法的典型用法代码示例。如果您正苦于以下问题:C# IBlock.Next方法的具体用法?C# IBlock.Next怎么用?C# IBlock.Next使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IBlock的用法示例。


在下文中一共展示了IBlock.Next方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: bindPickedList

        private void bindPickedList( IList serviceData, IBlock block ) {

            for (int i = 1; i < serviceData.Count; i++) {

                ContentPost post = serviceData[i] as ContentPost;

                IPageAdminSection sectionController = BinderUtils.GetPageSectionAdmin( post, ctx, "AdminSectionShow" );
                String typeIcon = sectionController.GetSectionIcon( post.SectionId );

                String attIcon = post.Attachments > 0 ? BinderUtils.iconAttachment : "";

                if (strUtil.HasText( post.TitleHome )) {
                    block.Set( "post.Title", post.TitleHome );
                } else {
                    block.Set( "post.Title", post.Title );
                }


                block.Set( "post.Url", alink.ToAppData( post, ctx ) );
                block.Set( "post.DataIcon", typeIcon );
                block.Set( "post.AttachmentIcon", attIcon );
                block.Set( "post.Created", post.Created.ToShortDateString() );
                block.Next();
            }
        }
开发者ID:2014AmethystCat,项目名称:wojilu,代码行数:25,代码来源:FocusBinderController.cs

示例2: bindTopPosts

 private void bindTopPosts( BlogSetting s, IBlock block ) {
     List<BlogPost> top = postService.GetTop( ctx.app.Id, s.StickyCount );
     foreach (BlogPost post in top) {
         bindPostOne( block, post, s );
         block.Next();
     }
 }
开发者ID:2014AmethystCat,项目名称:wojilu,代码行数:7,代码来源:BlogController.cs

示例3: bindFocus

 private void bindFocus( IBlock fblock, ContentPost article )
 {
     fblock.Set( "article.Title", strUtil.SubString( article.Title, 19 ) );
     fblock.Set( "article.SummaryInfo", strUtil.CutString( article.Summary, 100 ) );
     fblock.Set( "article.Url", alink.ToAppData( article, ctx ) );
     fblock.Next();
 }
开发者ID:ningboliuwei,项目名称:wojilu,代码行数:7,代码来源:FocusBinderController.cs

示例4: bindAppList

 private void bindAppList( IList apps, IBlock block )
 {
     foreach (IMemberApp app in apps) {
         block.Set( "app.Name", app.Name );
         String lnk = lnkFull( alink.ToUserAppFull( app ) );
         block.Set( "app.Link", lnk );
         block.Next();
     }
 }
开发者ID:robin88,项目名称:wojilu,代码行数:9,代码来源:DashboardController.cs

示例5: bindLinkPrivate

 private static void bindLinkPrivate( List<ForumLink> linkList, IBlock block )
 {
     foreach (ForumLink x in linkList) {
         block.Set( "x.Name", x.Name );
         block.Set( "x.Url", x.Url );
         block.Set( "x.Logo", x.Logo );
         block.Next();
     }
 }
开发者ID:Boshin,项目名称:wojilu,代码行数:9,代码来源:ForumController.cs

示例6: bindCategories

 private void bindCategories( List<ForumCategory> list, IBlock block ) {
     foreach (ForumCategory category in list) {
         block.Set( "category.Id", category.Id );
         block.Set( "category.Name", category.Name );
         block.Set( "category.NameColor", category.NameColor );
         block.Set( "category.TopicCount", category.TopicCount );
         block.Set( "category.EditUrl", to( Edit, category.Id ) );
         block.Set( "category.DeleteUrl", to( Delete, category.Id ) );
         block.Next();
     }
 }
开发者ID:2014AmethystCat,项目名称:wojilu,代码行数:11,代码来源:CategoryController.cs

示例7: bindMenuSingle

        public static void bindMenuSingle( IBlock block, IMenu menu, MvcContext ctx )
        {
            block.Set( "menu.Id", menu.Id );
            block.Set( "menu.Name", menu.Name );
            block.Set( "menu.Style", menu.Style );
            block.Set( "menu.Link", UrlConverter.toMenu( menu, ctx ) );

            String lnkTarget = menu.OpenNewWindow == 1 ? lnkTarget = " target=\"_blank\"" : "";
            block.Set( "menu.LinkTarget", lnkTarget );

            block.Next();
        }
开发者ID:robin88,项目名称:wojilu,代码行数:12,代码来源:MenuHelper.cs

示例8: bindRoleLine

        private void bindRoleLine( IBlock block, SiteRole role, String lbl ) {

            block.Set( lbl + ".Name", role.Name );
            block.Set( lbl + ".RenameLink", to( Rename, role.Id ) );

            String deleteLink = "";
            if (role.Id != SiteRole.Administrator.Id && role.Id != SiteRole.NormalMember.Id && role.Id != SiteRole.Guest.Id)
                deleteLink = string.Format( " <span href='{0}' class='deleteCmd'>" + lang( "delete" ) + "</span>", to( Delete, role.Id ) );
            block.Set( lbl + ".DeleteLink", deleteLink );

            block.Next();
        }
开发者ID:2014AmethystCat,项目名称:wojilu,代码行数:12,代码来源:SecurityController.cs

示例9: bindColumnList

        private void bindColumnList( List<ContentSection> sectionList, int iRow, int columnCount, IBlock columnBlock ) {
            for (int i = 1; i < (columnCount + 1); i++) {

                columnBlock.Set( "column.Index", i );
                columnBlock.Set( "column.Id", "row" + iRow + "_column" + i );
                columnBlock.Set( "columnId", string.Format( "row{0}_column{1}", iRow, i ) );

                IBlock sectionBlock = columnBlock.GetBlock( "sectionList" );
                List<ContentSection> sections = SectionService.GetByRowColumn( sectionList, iRow, i );
                bindSectionList( sectionBlock, sections );
                columnBlock.Next();
            }
        }
开发者ID:bae2014,项目名称:wojilu,代码行数:13,代码来源:ContentController.cs

示例10: bindForumLink

        private void bindForumLink( List<ForumLink> list, IBlock block ) {
            foreach (ForumLink link in list) {
                block.Set( "link.Id", link.Id );
                block.Set( "link.Name", link.Name );

                String logo = strUtil.HasText( link.Logo ) ? string.Format( "<img src=\"{0}\"/>", link.Logo ) : "";

                block.Set( "link.Logo", logo );
                block.Set( "link.Url", link.Url );
                block.Set( "link.Created", link.Created );
                block.Set( "link.EditUrl", to( Edit, link.Id ) );
                block.Set( "link.DeleteUrl", to( Delete, link.Id ) );
                block.Next();
            }
        }
开发者ID:2014AmethystCat,项目名称:wojilu,代码行数:15,代码来源:ForumLinkController.cs

示例11: bindAttachments

        private void bindAttachments( IBlock attachmentPanel, MessageData msgData )
        {
            List<MessageAttachment> list = attachmentService.GetByMsg( msgData.Id );

            IBlock block = attachmentPanel.GetBlock( "attachments" );
            foreach (MessageAttachment obj in list) {

                block.Set( "obj.FileName", obj.FileName );
                block.Set( "obj.FileSizeKB", obj.FileSizeKB );
                block.Set( "obj.DownloadUrl", to( DownloadAttachment, obj.Id ) );
                block.Next();
            }

            attachmentPanel.Next();
        }
开发者ID:Boshin,项目名称:wojilu,代码行数:15,代码来源:MsgController.cs

示例12: bindPickedList

        private void bindPickedList( IList serviceData, IBlock block )
        {
            for (int i = 1; i < serviceData.Count; i++) {
                ContentPost a = serviceData[i] as ContentPost;

                String typeIcon = BinderUtils.getTypeIcon( a );
                String attIcon = a.Attachments > 0 ? BinderUtils.iconAttachment : "";

                block.Set( "post.Title", a.Title );
                block.Set( "post.Url", alink.ToAppData( a ) );
                block.Set( "post.DataIcon", typeIcon );
                block.Set( "post.AttachmentIcon", attIcon );
                block.Set( "post.Created", a.Created.ToShortDateString() );
                block.Next();
            }
        }
开发者ID:robin88,项目名称:wojilu,代码行数:16,代码来源:FocusBinderController.cs

示例13: bindFocus

        private void bindFocus( IBlock fblock, ContentPost article ) {

            if (strUtil.HasText( article.TitleHome )) {
                fblock.Set( "article.Title", article.TitleHome );
            } else {
                fblock.Set( "article.Title", strUtil.SubString( article.Title, 19 ) );
            }

            if (strUtil.HasText( article.Summary )) {
                fblock.Set( "article.SummaryInfo", article.Summary);
            } else {
                fblock.Set( "article.SummaryInfo", strUtil.ParseHtml( article.Content, 100 ) );
            }

            fblock.Set( "article.Url", alink.ToAppData( article, ctx ) );
            fblock.Next();
        }
开发者ID:2014AmethystCat,项目名称:wojilu,代码行数:17,代码来源:FocusBinderController.cs

示例14: bindMemberList

        private void bindMemberList( IBlock block, DataPage<GroupUser> list ) {
            foreach (GroupUser mgr in list.Results) {
                if (mgr.Member == null) continue;
                block.Set( "user.Id", mgr.Member.RealId );
                block.Set( "user.Name", mgr.Member.Name );
                block.Set( "user.Url", toUser( mgr.Member ) );
                block.Set( "user.Status", mgr.RoleString );
                block.Set( "user.LastLoginTime", mgr.Member.LastLoginTime );

                block.Set( "user.Msg", mgr.Msg );

                String style = getUserStyle( mgr );
                block.Set( "user.Style", style );

                block.Next();
            }
            set( "page", list.PageBar );
        }
开发者ID:2014AmethystCat,项目名称:wojilu,代码行数:18,代码来源:MainController.cs

示例15: bindSectionList

        private void bindSectionList( IBlock sectionBlock, IList sections ) {

            int iSection = 1;
            foreach (ContentSection section in sections) {

                String moreUrl = getMoreUrl( section );
                String moreLink = getMoreLink( moreUrl );
                String title = getTitle( section, moreUrl );

                sectionBlock.Set( "section.Title", title );
                sectionBlock.Set( "section.MoreLink", moreLink );
                sectionBlock.Set( "section.CombineIds", section.CombineIds );
                sectionBlock.Set( "section.StyleClass", section.CssClass );

                String marquee = section.GetMarquee();
                if (strUtil.HasText( marquee )) {
                    String m = string.Format( "<marquee direction=\"{0}\" onMouseOver=\"stop()\" onMouseOut=\"start()\">", marquee );
                    sectionBlock.Set( "section.MarqueeStart", m );
                    sectionBlock.Set( "section.MarqueeEnd", "</marquee>" );
                }
                else {
                    sectionBlock.Set( "section.MarqueeStart", "" );
                    sectionBlock.Set( "section.MarqueeEnd", "" );
                }

                sectionBlock.Set( "section.Id", section.Id );
                sectionBlock.Set( "sectionClassId", iSection );

                String content = getSectionContent( section );
                sectionBlock.Set( "section.Content", content );
                sectionBlock.Next();

                iSection = iSection + 1;

            }
        }
开发者ID:bae2014,项目名称:wojilu,代码行数:36,代码来源:ContentController.cs


注:本文中的IBlock.Next方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。