コード例 #1
0
ファイル: Template.cs プロジェクト: Srid68/Priya.InfoList
		protected string ProcessBoolCommentorRoleItemSection(CommentorRoleItem commentorroleitem, string template)
		{
			string sectionStartTag;
			string sectionEndTag;
			string sectionTag;
			string sectionValue;
				
			#region Bool Section Processing

            #region Get Section Tag/Value

			sectionStartTag = "{{#CommentorRoleSelected}}";
			sectionEndTag = "{{/CommentorRoleSelected}}";
            sectionTag = TemplateUtil.GetSectionTag(template, sectionStartTag, sectionEndTag);
			sectionValue = sectionTag.Replace(sectionStartTag, "").Replace(sectionEndTag, "");

			#endregion

            #region Bool Section

			if (sectionTag.Trim().Length > 0)
			{
				template = template.Replace(sectionTag, commentorroleitem.CommentorRoleSelected ? sectionValue : "");
            }

            #endregion

            #endregion
			
			return template;
		}
コード例 #2
0
ファイル: Template.cs プロジェクト: Srid68/Priya.InfoList
		protected string ProcessListCommentorRoleItemSection(CommentorRoleItem commentorroleitem, string template)
		{

			return template;
		}